Skip to content

Commit f37947f

Browse files
committed
Update CLI functions to match click changes
Signed-off-by: Samuel Monson <smonson@redhat.com>
1 parent ea38010 commit f37947f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guidellm/utils/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ def convert(self, value, param, ctx):
166166

167167
self.fail("; ".join(fails) or f"Invalid value: {value}") # noqa: RET503
168168

169-
def get_metavar(self, param: click.Parameter) -> str:
169+
def get_metavar(self, param: click.Parameter, ctx: click.Context) -> str:
170170
def get_choices(t: click.ParamType) -> str:
171-
meta = t.get_metavar(param)
171+
meta = t.get_metavar(param, ctx)
172172
return meta if meta is not None else t.name
173173

174174
# Get the choices for each type in the union.

0 commit comments

Comments
 (0)