Files
clang-p2996/llvm/test/tools/obj2yaml/help.test
Fangrui Song df42d63d37 [obj2yaml] Refactor command line parsing
Similar to D73982 for yaml2obj.

* Hide unrelated options.
* Add an OVERVIEW: message.
* Disallow single-dash long options.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D129839
2022-07-18 00:13:55 -07:00

12 lines
523 B
Plaintext

## Show that help text is printed correctly when requested.
# RUN: obj2yaml -h | FileCheck %s --check-prefixes=CHECK,CATEG --implicit-check-not=Options:
# RUN: obj2yaml --help | FileCheck %s --check-prefixes=CHECK,CATEG --implicit-check-not=Options:
# RUN: obj2yaml --help-list | FileCheck %s --implicit-check-not=Options:
# CHECK: OVERVIEW: Dump a YAML description from an object file
# CHECK: USAGE: obj2yaml{{(.exe)?}} [options] <input file>{{$}}
# CHECK: OPTIONS:
# CATEG: Generic Options:
# CATEG: obj2yaml Options: