()
| 247 | |
| 248 | |
| 249 | def parse_args(): |
| 250 | args_parser = argparse.ArgumentParser( |
| 251 | description="Sorts methods of GithubObject classes, also sorts attributes in _initAttributes and _useAttributes" |
| 252 | ) |
| 253 | args_parser.add_argument("index_filename", help="Path of index file") |
| 254 | args_parser.add_argument( |
| 255 | "class_name", |
| 256 | nargs="+", |
| 257 | help="GithubObject class to sort, e.g. HookDelivery or github.HookDelivery.HookDeliverySummary", |
| 258 | ) |
| 259 | args_parser.add_argument( |
| 260 | "--dry-run", default=False, action="store_true", help="show prospect changes and do not modify the file" |
| 261 | ) |
| 262 | if len(sys.argv) == 1: |
| 263 | args_parser.print_help() |
| 264 | sys.exit(1) |
| 265 | return args_parser.parse_args() |
| 266 | |
| 267 | |
| 268 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…