def parse_args()

in launch.py [0:0]


def parse_args():
    """Parse arguments."""
    parser = argparse.ArgumentParser()
    parser.add_argument('-c',
                        '--cfg',
                        type=str,
                        required=True,
                        help='Overrides config file')
    parser.add_argument('-l',
                        '--local',
                        action='store_true',
                        help='Run locally instead of launching to cluster')
    parser.add_argument('-g',
                        '--debug',
                        action='store_true',
                        help='Run in debug mode: 1 GPU, when locally')
    parser.add_argument('-t',
                        '--test',
                        action='store_true',
                        help='Run testing mode (will pick the last ckpt)')
    parser.add_argument('-p',
                        '--partition',
                        type=str,
                        default=None,
                        help='Specify SLURM partition to run on')
    parser.add_argument('--tb',
                        action='store_true',
                        help='Run tensorboard on this directory')
    parser.add_argument('-f',
                        '--fl',
                        action='store_true',
                        help='View the folder (run a python server)')
    parser.add_argument('-d',
                        '--delete',
                        action='store_true',
                        help='Delete the folder')
    parser.add_argument('-k',
                        '--kill',
                        action='store_true',
                        help='Kill jobs running this config.')
    parser.add_argument('--profile',
                        action='store_true',
                        help='Run with kernprof. Decorate fn with @profile')
    parser.add_argument('--cls',
                        action='store_true',
                        help='Gen classification file and run that')
    parser.add_argument('--run_id',
                        type=int,
                        default=None,
                        help='Run for this specific run_id, if known')
    parser.add_argument('rest', nargs=argparse.REMAINDER)
    args = parser.parse_args()
    if args.debug:
        args.local = True
    return args