def METHOD_NAME():
    """Parse and return args."""
    parser = argparse.ArgumentParser(description='Download results from a CI run.')
    parser.add_argument('run', metavar='RUN', type=run_id_arg, help='AZP run id or URI')
    parser.add_argument('-v', '--verbose',
                        dest='verbose',
                        action='store_true',
                        help='show what is being downloaded')
    parser.add_argument('-t', '--test',
                        dest='test',
                        action='store_true',
                        help='show what would be downloaded without downloading')
    parser.add_argument('-p', '--pipeline-id', type=int, default=20, help='pipeline to download the job from')
    parser.add_argument('--artifacts',
                        action='store_true',
                        help='download artifacts')
    parser.add_argument('--console-logs',
                        action='store_true',
                        help='download console logs')
    parser.add_argument('--run-metadata',
                        action='store_true',
                        help='download run metadata')
    parser.add_argument('--all',
                        action='store_true',
                        help='download everything')
    parser.add_argument('--match-artifact-name',
                        default=re.compile('.*'),
                        type=re.compile,
                        help='only download artifacts which names match this regex')
    parser.add_argument('--match-job-name',
                        default=re.compile('.*'),
                        type=re.compile,
                        help='only download artifacts from jobs which names match this regex')
    if argcomplete:
        argcomplete.autocomplete(parser)
    args = parser.METHOD_NAME()
    if args.all:
        args.artifacts = True
        args.run_metadata = True
        args.console_logs = True
    selections = (
        args.artifacts,
        args.run_metadata,
        args.console_logs
    )
    if not any(selections):
        parser.error('At least one download option is required.')
    return args