def METHOD_NAME():
    parser = argparse.ArgumentParser()
    parser.add_argument(
        "--version", action="version", version=f"{parser.prog} {tron.__version__}",
    )
    parser.add_argument(
        "-w",
        "--working-dir",
        default=DEFAULT_WORKING_DIR,
        help="Working directory for the Tron daemon, default %(default)s",
    )
    parser.add_argument(
        "-c", "--config-path", default=DEFAULT_CONF_PATH, help="File path to the Tron configuration file",
    )
    parser.add_argument(
        "--nodaemon", action="store_true", default=False, help="[DEPRECATED] Disable daemonizing, default %(default)s",
    )
    parser.add_argument(  # for backwards compatibility
        "--pid-file", help="[DEPRECATED] File path to pid file. Use --lock-file instead.",
    )
    parser.add_argument(
        "--lock-file",
        help="File path to lock file, defaults to %s if working directory "
        "is default. Otherwise defaults to <working dir>/%s" % (DEFAULT_LOCKPATH, DEFAULT_LOCKFILE),
    )
    logging_group = parser.add_argument_group("logging", "")
    logging_group.add_argument(
        "--log-conf", "-l", help="File path to a custom logging.conf",
    )
    logging_group.add_argument(
        "-v", "--verbose", action="count", default=0, help="Verbose logging. Repeat for more verbosity.",
    )
    logging_group.add_argument(
        "--debug", action="store_true", help="Debug mode, extra error reporting, no daemonizing",
    )
    api_group = parser.add_argument_group("Web Service API", "")
    api_group.add_argument(
        "--port",
        "-P",
        dest="listen_port",
        type=int,
        help="TCP port number to listen on, default %(default)s",
        default=cmd_utils.DEFAULT_PORT,
    )
    api_group.add_argument(
        "--host",
        "-H",
        dest="listen_host",
        help="Hostname to listen on, default %(default)s",
        default=cmd_utils.DEFAULT_HOST,
    )
    requirement = pkg_resources.Requirement.parse("tron")
    api_group.add_argument(
        "--web-path",
        default=pkg_resources.resource_filename(requirement, "tronweb",),
        help="Path to static web resources, default %(default)s.",
    )
    args = parser.parse_args()
    args.working_dir = os.path.abspath(args.working_dir)
    if args.log_conf:
        args.log_conf = os.path.join(args.working_dir, args.log_conf)
        if not os.path.exists(args.log_conf):
            parser.error("Logging config file not found: %s" % args.log_conf)
    if not args.lock_file:
        if args.pid_file:  # for backwards compatibility
            args.lock_file = args.pid_file
        elif args.working_dir == DEFAULT_WORKING_DIR:
            args.lock_file = DEFAULT_LOCKPATH
        else:
            args.lock_file = DEFAULT_LOCKFILE
    args.lock_file = os.path.join(args.working_dir, args.lock_file)
    args.config_path = os.path.join(args.working_dir, args.config_path,)
    return args