1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/tools/yaml2obj/help.test
Fangrui Song 18c1f9730e [yaml2obj] Refactor command line parsing
* Hide unrelated options.
* Add "OVERVIEW: " to yaml2obj -h/--help.
* Place options under a yaml2obj category.
* Disallow -docnum. Currently -docnum is the only yaml2obj specific long option that is affected.
* Specify `cl::init("-")` and `cl::Prefix` for OutputFilename. The
  latter allows `-ofile`

Reviewed By: grimar, jhenderson

Differential Revision: https://reviews.llvm.org/D73982
2020-02-06 01:11:58 -08:00

12 lines
525 B
Plaintext

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