Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

-h in priority #253

Open
nilgoyette opened this issue Jun 27, 2019 · 0 comments
Open

-h in priority #253

nilgoyette opened this issue Jun 27, 2019 · 0 comments

Comments

@nilgoyette
Copy link

When calling a binary, some users forget how some arguments work and simply add a -h to see the help again, without removing all parameters.

job a/long/path.gz another/long/path.gz a/long/path/again.gz -h

In some libs, like argparse, this prints the complete help message, as if you used job -h. With docopt-rs, it does print the usage message, but doesn't actually care about the -h. It would print the same thing with a non-existing parameter.

Invalid arguments.

Usage:
    job ...

tl;rd it would be nice to print the whole help message with -h, even if there are other args.

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

No branches or pull requests

1 participant