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

argparse output suxx #1

Open
techtonik opened this issue Dec 13, 2015 · 2 comments
Open

argparse output suxx #1

techtonik opened this issue Dec 13, 2015 · 2 comments

Comments

@techtonik
Copy link
Owner

$ python -m wheel
usage: __main__.py [-h]
                   {keygen,sign,unsign,verify,unpack,install,install-scripts,convert,version,help}
                   ...
__main__.py: error: too few arguments

It should be at least:

$ python -m wheel
usage: python -m wheel [command]

commands:
    keygen                 - bla-bla-bla
    sign
    unsign
    verify
    unpack
    install
    install-scripts
    convert
    version
    help
                   ...
wheel: error: too few arguments
@techtonik
Copy link
Owner Author

--help output also suxx:

> py -2 -m wheel -h
usage: __main__.py [-h]
                   {keygen,sign,unsign,verify,unpack,install,install-scripts,convert,version,help}
                   ...

positional arguments:
  {keygen,sign,unsign,verify,unpack,install,install-scripts,convert,version,help}
                        commands
    keygen              Generate signing key
    sign                Sign wheel
    unsign              Remove RECORD.jws from a wheel by truncating the zip
                        file. RECORD.jws must be at the end of the archive.
                        The zip file must be an ordinary archive, with the
                        compressed files and the directory in the same order,
                        and without any non-zip content after the truncation
                        point.
    verify              Verify a wheel. The signature will be verified for
                        internal consistency ONLY and printed. Wheel's own
                        unpack/install commands verify the manifest against
                        the signature and file contents.
    unpack              Unpack wheel
    install             Install wheels
    install-scripts     Install console_scripts
    convert             Convert egg or wininst to wheel
    version             Print version and exit
    help                Show this help

optional arguments:
  -h, --help            show this help message and exit

I don't get why people want to name commands as positional arguments and options as optional arguments. I mean if you want to name commands to be something else, you should have the freedom, but by default the names should be sane.

@techtonik
Copy link
Owner Author

techtonik commented Jan 2, 2018

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