[llvm-ar] Parse 'h' and '-h': display help and exit
commitf8fdf4c61c218bdb1a117375205e911181d8a5b7
authorFangrui Song <maskray@google.com>
Tue, 17 Sep 2019 09:25:52 +0000 (17 09:25 +0000)
committerFangrui Song <maskray@google.com>
Tue, 17 Sep 2019 09:25:52 +0000 (17 09:25 +0000)
tree70cc33a4954f070441b14189171f8da9bd936433
parent6c1a6d5a8a043495d1b3d930aecd183617d07839
[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