def METHOD_NAME():
    """Parse command line arguments using argparse.
    """
    parser = argparse.ArgumentParser(description=DESCRIPTION)
    parser.add_argument(
        '-V', '--version',
        action='version',
        version='%(prog)s: v{} by {}'.format(__version__, __author__)
    )
    parser.add_argument(
        '--always-ok',
        help='Always returns OK.',
        dest='ALWAYS_OK',
        action='store_true',
        default=False,
    )
    parser.add_argument(
        '-c', '--critical',
        help='Set the critical number of files. Supports ranges.',
        dest='CRIT',
    )
    parser.add_argument(
        '--filename',
        help='File (or directory) name to check. Supports glob in accordance with https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob. Beware of using recursive globs. This is mutually exclusive with -u / --url.',
        dest='FILENAME',
    )
    parser.add_argument(
        '--only-dirs',
        help='Only consider directories.',
        dest='ONLY_DIRS',
        action='store_true',
        default=False,
    )
    parser.add_argument(
        '--only-files',
        help='Only consider files.',
        dest='ONLY_FILES',
        action='store_true',
        default=False,
    )
    parser.add_argument(
        '--password',
        help='SMB Password.',
        dest='PASSWORD',
    )
    parser.add_argument(
        '--pattern',
        help="The search string to match against the names of SMB directories or files. This pattern can use '*' as a wildcard for multiple chars and '?' as a wildcard for a single char. Does not support regex patterns. Default: %(default)s.",
        dest='PATTERN',
        default=DEFAULT_PATTERN,
    )
    parser.add_argument(
        '--timeout',
        help='Network timeout in seconds. Default: %(default)s (seconds)',
        dest='TIMEOUT',
        type=int,
        default=DEFAULT_TIMEOUT,
    )
    parser.add_argument(
        '--timerange',
        help='Set the timerange (seconds) in which the files should be considered. Supports ranges.',
        dest='TIMERANGE',
    )
    parser.add_argument(
        '-u', '--url',
        help='Set the url of the file (or directory) to check, starting with "smb://". This is mutually exclusive with --filename.',
        dest='URL',
        type=str,
    )
    parser.add_argument(
        '--username',
        help='SMB Username.',
        dest='USERNAME',
    )
    parser.add_argument(
        '-w', '--warning',
        help='Set the warning number of files. Supports ranges.',
        dest='WARN',
    )
    return parser.METHOD_NAME()