diff options
author | Fangrui Song <maskray@google.com> | 2019-09-17 09:25:52 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-09-17 09:25:52 +0000 |
commit | 1ecba6f8efd2bdc466b4811081573186abd9a975 (patch) | |
tree | 271b10bfb5c1031830a5dda968ef7172e9b442ea /llvm/test/tools | |
parent | de1bef0b1b2d111e07450686843dec76e2763130 (diff) | |
download | bcm5719-llvm-1ecba6f8efd2bdc466b4811081573186abd9a975.tar.gz bcm5719-llvm-1ecba6f8efd2bdc466b4811081573186abd9a975.zip |
[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
Diffstat (limited to 'llvm/test/tools')
-rw-r--r-- | llvm/test/tools/llvm-ar/help-message.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-ar/help-message.test b/llvm/test/tools/llvm-ar/help-message.test new file mode 100644 index 00000000000..ed17667291d --- /dev/null +++ b/llvm/test/tools/llvm-ar/help-message.test @@ -0,0 +1,6 @@ +# RUN: llvm-ar h | FileCheck %s +# RUN: llvm-ar -h | FileCheck %s +# RUN: llvm-ar -help | FileCheck %s +# RUN: llvm-ar --help | FileCheck %s + +# CHECK: USAGE: llvm-ar |