src.utils.fix_parser module

src.utils.fix_parser module#

src.utils.fix_parser.add_minus_flags(parser: ArgumentParser)[source]#

Automatically add aliases for argparse options that contain underscores. For example: –fix_existing -> add alias –fix-existing –augment_OD_num -> add alias –augment-OD-num

src.utils.fix_parser.add_negation_flags(parser: ArgumentParser)[source]#

Automatically add matching –no-xxx options for store_true flags.