pwd: add -h/-V short flags for help/version#8889
Conversation
|
GNU testsuite comparison: |
|
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 |
|
GNU testsuite comparison: |
|
is it still a draft ? thanks |
|
please reopen when it is ready |
This adds
-hand-Vas short alternatives for--helpand--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