Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

description of option --global is missleading #1537

Open
return42 opened this issue Sep 6, 2024 · 0 comments
Open

description of option --global is missleading #1537

return42 opened this issue Sep 6, 2024 · 0 comments

Comments

@return42
Copy link

return42 commented Sep 6, 2024

Describe the bug

The help message describes the options in the comandline in front:

$ pipx --help
usage: pipx [-h] [--quiet] [--verbose] [--global] [--version]
            {install, ..list, ..}
$ pipx --version
1.6.0

But when using the option --global in front of the command, the option is ignored:

$ sudo pipx --global list
nothing has been installed with pipx 😴

How to reproduce

We have to set the option behind the command:

$ sudo pipx list --global
venvs are in /opt/pipx/venvs
apps are exposed on your $PATH at /usr/local/bin
manual pages are exposed at /usr/local/share/man
   package ocrmypdf 16.5.0, installed using Python 3.12.5
    - ocrmypdf

This is the same with all the other commands who have a --global option (install, unistall ..).

Expected behavior

A bugfix for the commandline parser or at least the documentation is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant