Skip to content

Commit dca82ef

Browse files
committed
Mark subparser argument as optional
By parking the subparser as required, running just `vllm` produces an error. ``` $ vllm usage: vllm [-h] [-v] {chat,complete,serve} ... vllm: error: the following arguments are required: subparser ``` With this fix, running `vllm` will just show the help message as if you rbryant `vllm --help` or `vllm -h`. Signed-off-by: Russell Bryant <[email protected]>
1 parent 86d1f14 commit dca82ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/cmd/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def main():
5757
'--version',
5858
action='version',
5959
version=vllm.version.__version__)
60-
subparsers = parser.add_subparsers(required=True, dest="subparser")
60+
subparsers = parser.add_subparsers(required=False, dest="subparser")
6161
cmds = {}
6262
for cmd_module in CMD_MODULES:
6363
new_cmds = cmd_module.cmd_init()

0 commit comments

Comments
 (0)