wasi-master / pypi-command-line

A powerful, colorful, beautiful command-line-interface for pypi.org
https://wasi-master.github.io/pypi-command-line/
MIT License
46 stars 7 forks source link

[BUG] shell usage assumes the command is on the path #7

Closed henryiii closed 2 years ago

henryiii commented 2 years ago

Describe the bug

If you run pipx run pypi-command-line, you get a choice of what to do. If you select Run 'pypi-command-line --help', it fails because the path is not set up to run pypi (and pypi-command-line isn't a script, but that's not the problem). Instead, it should trigger the help directly, rather than running an expensive and fragile subprocess.

To Reproduce Steps to reproduce the behavior:

  1. pipx run pypi-command-line (or run this any method without putting pypi on the path)
  2. Press enter

Expected behavior It shouldn't fail.

Additional context

pipx run --spec pypi-command-line pypi fails too, giving Run 'pypi --help' but it's still not on the path.