MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / subparser_init

Method subparser_init

fastdeploy/entrypoints/cli/serve.py:71–80  ·  view source on GitHub ↗
(self, subparsers: argparse._SubParsersAction)

Source from the content-addressed store, hash-verified

69 proc.wait()
70
71 def subparser_init(self, subparsers: argparse._SubParsersAction) -> FlexibleArgumentParser:
72 serve_parser = subparsers.add_parser(
73 name=self.name,
74 help="Start the FastDeploy OpenAI Compatible API server.",
75 description="Start the FastDeploy OpenAI Compatible API server.",
76 usage="fastdeploy serve [options]",
77 )
78 serve_parser = make_arg_parser(serve_parser)
79 serve_parser.add_argument("--config", help="Read CLI options from a config file. Must be a YAML file")
80 return serve_parser
81
82
83def cmd_init() -> list[CLISubcommand]:

Callers 1

test_subparser_initMethod · 0.95

Calls 1

make_arg_parserFunction · 0.90

Tested by 1

test_subparser_initMethod · 0.76