This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readelf] Unhide short options to match the command guide
ClosedPublic

Authored by gbreynoo on May 10 2021, 8:06 AM.

Details

Summary

The readelf command guide shows the short options used as aliases but these are not found in the help text unless --show-hidden is used, other tools show aliases with --help. This change fixes the help output to be consistent with the command guide.

Diff Detail

Event Timeline

gbreynoo created this revision.May 10 2021, 8:06 AM
gbreynoo requested review of this revision.May 10 2021, 8:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2021, 8:06 AM

Help option output should be consistent with the command guide

Make it imperative, e.g. "Unhide some short options"

gbreynoo edited the summary of this revision. (Show Details)May 11 2021, 3:15 AM
gbreynoo retitled this revision from [llvm-readelf] Help option output should be consistent with the command guide to [llvm-readelf] Unhide short options to match the command guide.
gbreynoo edited the summary of this revision. (Show Details)

Thanks Maskray, I've updated the title. I changed the description but reverted it back as I think that's still reads okay.

MaskRay accepted this revision.May 11 2021, 12:31 PM

Thanks!

This revision is now accepted and ready to land.May 11 2021, 12:31 PM

Unhide short options to match the command guide

Now a reader can quickly tell what you do in this patch. Previously it just stated an ideal state "things should be consistent" - but it was unclear what was inconsistent and what the patch did to make it consistent.

This revision was landed with ongoing or failed builds.May 12 2021, 4:10 AM
This revision was automatically updated to reflect the committed changes.