()
| 44 | |
| 45 | |
| 46 | def parse_args(): |
| 47 | parser = argparse.ArgumentParser(description="Process some integers.") |
| 48 | parser.add_argument( |
| 49 | "--signature", |
| 50 | action="store_true", |
| 51 | help="print functions whose signatures don't match CPython's", |
| 52 | ) |
| 53 | parser.add_argument( |
| 54 | "--doc", |
| 55 | action="store_true", |
| 56 | help="print elements whose __doc__ don't match CPython's", |
| 57 | ) |
| 58 | parser.add_argument( |
| 59 | "--json", |
| 60 | action="store_true", |
| 61 | help="print output as JSON (instead of line by line)", |
| 62 | ) |
| 63 | parser.add_argument( |
| 64 | "--no-default-features", |
| 65 | action="store_true", |
| 66 | help="disable default features when building RustPython", |
| 67 | ) |
| 68 | parser.add_argument( |
| 69 | "--features", |
| 70 | action="append", |
| 71 | help="which features to enable when building RustPython (default: [])", |
| 72 | default=[], |
| 73 | ) |
| 74 | |
| 75 | args = parser.parse_args() |
| 76 | return args |
| 77 | |
| 78 | |
| 79 | args = parse_args() |
no test coverage detected