-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
df: -h -H shouldn't cause an error #3366
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
Comments
Maybe, it could be interesting to report an issue on the GNU bug tracker |
I think this is intentional on GNU's part. They use overriding options all over this place. I think the reasoning is that one can define an alias |
Yes it is a feature of the argument parser that they use: you can supply any number of arguments and only the last one gets used:
|
df: -h -H shouldn't cause an error #3366
When running
df -h -H
, the two options are treated as mutually exclusive and clap generates an error. This is the behavior I expected. However, GNU df handles this situation differently and doesn't generate an error. It simply ignores the first option.The text was updated successfully, but these errors were encountered: