Skip to content

Commit a04a660

Browse files
reidliu41reidliu41
authored andcommitted
[bugfix] fix the wrong parser (vllm-project#17958)
Signed-off-by: reidliu41 <reid201711@gmail.com> Co-authored-by: reidliu41 <reid201711@gmail.com>
1 parent bbfeab4 commit a04a660

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

vllm/entrypoints/cli/collect_env.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44

55
from vllm.collect_env import main as collect_env_main
66
from vllm.entrypoints.cli.types import CLISubcommand
7-
from vllm.entrypoints.openai.cli_args import make_arg_parser
87
from vllm.utils import FlexibleArgumentParser
98

109

1110
class CollectEnvSubcommand(CLISubcommand):
12-
"""The `serve` subcommand for the vLLM CLI. """
11+
"""The `collect-env` subcommand for the vLLM CLI. """
1312

1413
def __init__(self):
1514
self.name = "collect-env"
@@ -23,12 +22,12 @@ def cmd(args: argparse.Namespace) -> None:
2322
def subparser_init(
2423
self,
2524
subparsers: argparse._SubParsersAction) -> FlexibleArgumentParser:
26-
serve_parser = subparsers.add_parser(
25+
collect_env_parser = subparsers.add_parser(
2726
"collect-env",
2827
help="Start collecting environment information.",
2928
description="Start collecting environment information.",
3029
usage="vllm collect-env")
31-
return make_arg_parser(serve_parser)
30+
return collect_env_parser
3231

3332

3433
def cmd_init() -> list[CLISubcommand]:

0 commit comments

Comments
 (0)