FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix `pyperformance venv` (w/o any subcommand) exception by maurycy · Pull Request #454 · python/pyperformance · GitHub

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 3 additions & 1 deletion pyperformance/cli.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL