src/orion/core/cli/serve.py
def add_subparser(parser):
    """Add the subparser that needs to be used for this command"""
    serve_parser = parser.add_parser("serve", help=DESCRIPTION, description=DESCRIPTION)

    serve_parser.add_argument(
        "-c",
        "--config",
        type=argparse.FileType("r"),
        metavar="path-to-config",
        help="user provided " "orion configuration file",
    )

    serve_parser.set_defaults(func=main)

    return serve_parser
Add the subparser that needs to be used for this command
Add the subparser that needs to be used for this command
Add the subparser that needs to be used for this command
def add_subparser(parser):
    serve_parser = parser.add_parser("serve", help=DESCRIPTION, description=DESCRIPTION)
    serve_parser.add_argument(
        "-c",
        "--config",
        type=argparse.FileType("r"),
        metavar="path-to-config",
        help="user provided " "orion configuration file",
    )
    serve_parser.set_defaults(func=main)
    return serve_parser
def add_subparser ( parser ) : serve_parser = parser . add_parser ( "serve" , help = DESCRIPTION , description = DESCRIPTION ) serve_parser . add_argument ( "-c" , "--config" , type = argparse . FileType ( "r" ) , metavar = "path-to-config" , help = "user provided " "orion configuration file" , ) serve_parser . set_defaults ( func = main ) return serve_parser
Add the subparser that needs to be used for this command
Add the subparser that needs to be used for this command
"""Add the subparser that needs to be used for this command"""
parser