[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)
commit1ecba6f8efd2bdc466b4811081573186abd9a975
tree271b10bfb5c1031830a5dda968ef7172e9b442ea
parentde1bef0b1b2d111e07450686843dec76e2763130
[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

llvm-svn: 372088
llvm/test/tools/llvm-ar/help-message.test [new file with mode: 0644]
llvm/tools/llvm-ar/llvm-ar.cpp