This is an archive of the discontinued LLVM Phabricator instance.

[llvm-ar] Parse 'h' and '-h': display help and exit
ClosedPublic

Authored by MaskRay on Sep 13 2019, 9:14 AM.

Details

Summary

Operation 'h' is undocumented in GNU ar. llvm-ar h or llvm-ar -h may
be what users try at first if they have the impression that operations
are usually not prepended by a dash.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Sep 13 2019, 9:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2019, 9:14 AM
grimar added inline comments.Sep 14 2019, 5:05 AM
tools/llvm-ar/llvm-ar.cpp
79 ↗(On Diff #220121)

Should it be updated?

289 ↗(On Diff #220121)

Shouldn't it be in handleGenericOption together with another -help-like things?

MaskRay updated this revision to Diff 220217.Sep 14 2019, 8:05 AM
MaskRay retitled this revision from [llvm-ar] Add operation 'h': display help and exit to [llvm-ar] Parse 'h' and '-h': display help and exit.
MaskRay edited the summary of this revision. (Show Details)

Parse -h (supported by GNU ar as well)
Address review comments

MaskRay marked 2 inline comments as done.Sep 14 2019, 8:53 AM

Operation 'h' is undocumented in GNU as.

I think you mean GNU ar... :)

No additional comments from me. Thanks!

MaskRay edited the summary of this revision. (Show Details)Sep 16 2019, 9:05 AM
This revision is now accepted and ready to land.Sep 17 2019, 2:01 AM
This revision was automatically updated to reflect the committed changes.