-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
pwd: add -h/-V short flags for help/version #8889
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
base: main
Are you sure you want to change the base?
Conversation
GNU testsuite comparison:
|
Apply feedback from PR uutils#8889 review by @sylvestre: - English: use 'Print help information' and 'Print version information' - French: use 'Afficher l'aide' and 'Afficher les informations de version' - Remove obsolete comment about providing own help/version options
GNU testsuite comparison:
|
LGTM |
Please don't. For licensing reasons, we are not allowed to look at GNU's source code to implement our coreutils. |
why do you think we should do that ? |
I thought any difference from GNU coreutils was a bug that needed fixing. I now understand uutils aims for compatibility while adding useful extensions when appropriate. I will update this PR to enhance pwd with short flags rather than removing them. |
This adds -h and -V as short alternatives for --help and --version. GNU pwd only supports the long forms, but most other uutils accept both. Having the short flags makes pwd consistent with the rest of the utilities and more convenient to use. Changes: - Added .short('h') and .short('V') to help/version args - Updated tests to verify both short and long forms work - Localization already in place for both English and French
3137a1a
to
88d47ac
Compare
Somehow I don't understand what you try to accomplish with this PR.
|
GNU testsuite comparison:
|
|
I think we should do the localization of the help/version lines for all utils in the same place. I opened a ticket for it: #8923 |
This adds
-h
and-V
as short alternatives for--help
and--version
.GNU pwd only supports the long forms, but most other uutils accept both.
Having the short flags makes pwd consistent with the rest of the utilities
and more convenient to use.
Changes:
.short('h')
and.short('V')
to the help/version args