Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pyperformance/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def parse_args():
"venv", parents=[venv_common], help="Actions on the virtual environment"
)
cmd.set_defaults(venv_action="show")
cmds.append(cmd)
venvsubs = cmd.add_subparsers(dest="venv_action")
cmd = venvsubs.add_parser("show", parents=[venv_common])
cmds.append(cmd)
Expand Down Expand Up @@ -386,7 +387,8 @@ def _main():
elif action == "show":
cmd_venv_show(options, root)
else:
print(f"ERROR: unsupported venv command action {action!r}")
if action is not None:
print(f"ERROR: unsupported venv command action {action!r}")
parser.print_help()
sys.exit(1)
elif options.action == "compile":
Expand Down
Loading