| 13 | from src.registry import PROCESSOR |
| 14 | |
| 15 | def parse_args(): |
| 16 | parser = argparse.ArgumentParser(description='main') |
| 17 | parser.add_argument("--config", default=os.path.join(root, "configs", "process", "crypto.py"), help="config file path") |
| 18 | |
| 19 | parser.add_argument( |
| 20 | '--cfg-options', |
| 21 | nargs='+', |
| 22 | action=DictAction, |
| 23 | help='override some settings in the used config, the key-value pair ' |
| 24 | 'in xxx=yyy format will be merged into config file. If the value to ' |
| 25 | 'be overwritten is a list, it should be like key="[a,b]" or key=a,b ' |
| 26 | 'It also allows nested list/tuple values, e.g. key="[(a,b),(c,d)]" ' |
| 27 | 'Note that the quotation marks are necessary and that no white space ' |
| 28 | 'is allowed.') |
| 29 | args = parser.parse_args() |
| 30 | return args |
| 31 | |
| 32 | async def main(): |
| 33 | # Parse command line arguments |