[Frontend] improve vllm serve --help display (#18643)
Signed-off-by: reidliu41 <reid201711@gmail.com> Co-authored-by: reidliu41 <reid201711@gmail.com>
This commit is contained in:
+4
-2
@@ -33,7 +33,8 @@ import uuid
|
||||
import warnings
|
||||
import weakref
|
||||
from argparse import (Action, ArgumentDefaultsHelpFormatter, ArgumentParser,
|
||||
ArgumentTypeError, _ArgumentGroup)
|
||||
ArgumentTypeError, RawDescriptionHelpFormatter,
|
||||
_ArgumentGroup)
|
||||
from asyncio import FIRST_COMPLETED, AbstractEventLoop, Task
|
||||
from collections import UserDict, defaultdict
|
||||
from collections.abc import (AsyncGenerator, Awaitable, Generator, Hashable,
|
||||
@@ -1323,7 +1324,8 @@ class StoreBoolean(Action):
|
||||
"Expected 'true' or 'false'.")
|
||||
|
||||
|
||||
class SortedHelpFormatter(ArgumentDefaultsHelpFormatter):
|
||||
class SortedHelpFormatter(ArgumentDefaultsHelpFormatter,
|
||||
RawDescriptionHelpFormatter):
|
||||
"""SortedHelpFormatter that sorts arguments by their option strings."""
|
||||
|
||||
def _split_lines(self, text, width):
|
||||
|
||||
Reference in New Issue
Block a user