]> granicus.if.org Git - llvm/commit
[llvm-ar] Parse 'h' and '-h': display help and exit
authorFangrui Song <maskray@google.com>
Tue, 17 Sep 2019 09:25:52 +0000 (09:25 +0000)
committerFangrui Song <maskray@google.com>
Tue, 17 Sep 2019 09:25:52 +0000 (09:25 +0000)
commit61474b8c874a42e7da90b1bc2ac57e0d15468664
tree70cc33a4954f070441b14189171f8da9bd936433
parentefc29761d187adc4d1a0a8921258b1f5785ac7c9
[llvm-ar] Parse 'h' and '-h': display help and exit

Support `llvm-ar h` and `llvm-ar -h` because they may be what users try
at first. Note, operation 'h' is undocumented in GNU ar.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D67560

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372088 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-ar/help-message.test [new file with mode: 0644]
tools/llvm-ar/llvm-ar.cpp