Skip to content

Commit

Permalink
chore(cli): using quotes instead of backslash (#2981)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauyon committed Sep 13, 2022
1 parent fcd518e commit 7b5efb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bentoml_cli/utils.py
Expand Up @@ -163,7 +163,7 @@ def wrapper(*args: P.args, **kwargs: P.kwargs) -> t.Any:
try:
return func(*args, **kwargs)
except BentoMLException as err:
msg = f"[{cmd_group.name}] `{command_name}` failed: {str(err)}"
msg = f"[{cmd_group.name}] '{command_name}' failed: {str(err)}"
raise ClickException(click.style(msg, fg="red")) from err

return t.cast("ClickFunctionWrapper[t.Any]", wrapper)
Expand Down Expand Up @@ -279,7 +279,6 @@ def unparse_click_params(
logger.warning(
f"{command_params} is a prompt, skip parsing it for now."
)
pass
if command_param.is_flag:
args.append(command_param.opts[-1])
else:
Expand Down

0 comments on commit 7b5efb2

Please sign in to comment.