2021-07-12 19:14:42 +02:00
|
|
|
# RUN: llvm-readobj --help | FileCheck --check-prefix=CHECK-READOBJ %s
|
2019-05-01 07:27:20 +02:00
|
|
|
# RUN: llvm-tblgen --help-hidden %t | FileCheck --check-prefix=CHECK-TBLGEN %s
|
|
|
|
# RUN: llvm-opt-report --help-hidden %t | FileCheck --check-prefix=CHECK-OPT-RPT %s
|
[CommandLineParser] Add DefaultOption flag
Summary: Add DefaultOption flag to CommandLineParser which provides a
default option or alias, but allows users to override it for some
other purpose as needed.
Also, add `-h` as a default alias to `-help`, which can be seamlessly
overridden by applications like llvm-objdump and llvm-readobj which
use `-h` as an alias for other options.
(relanding after revert, r358414)
Added DefaultOptions.clear() to reset().
Reviewers: alexfh, klimek
Reviewed By: klimek
Subscribers: kristina, MaskRay, mehdi_amini, inglorion, dexonsmith, hiraditya, llvm-commits, jhenderson, arphaman, cfe-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D59746
llvm-svn: 358428
2019-04-15 19:18:10 +02:00
|
|
|
|
2021-07-12 19:14:42 +02:00
|
|
|
# CHECK-READOBJ: -h Alias for --file-header
|
2019-05-03 19:47:29 +02:00
|
|
|
# CHECK-TBLGEN: -h - Alias for --help
|
|
|
|
# CHECK-OPT-RPT: -h - Alias for --help
|