1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/tools/llvm-rc/helpmsg.test
Fangrui Song e7dda9d340 [opt] Change the parameter of OptTable::PrintHelp from Name to Usage and don't append "[options] <inputs>"
Summary:
Before, "[options] <inputs>" is unconditionally appended to the `Name` parameter. It is more flexible to change its semantic to `Usage` and let user customize the usage line.

% llvm-objcopy
...
USAGE: llvm-objcopy <input> [ <output> ] [options] <inputs>

With this patch:

% llvm-objcopy
...
USAGE: llvm-objcopy input [output]

Reviewers: rupprecht, alexshap, jhenderson

Reviewed By: rupprecht

Subscribers: jakehehrlich, mehdi_amini, steven_wu, dexonsmith, llvm-commits

Differential Revision: https://reviews.llvm.org/D51009

llvm-svn: 344097
2018-10-10 00:15:31 +00:00

23 lines
1.1 KiB
Plaintext

; RUN: llvm-rc /h > %t1
; RUN: llvm-rc '/?' > %t2
; RUN: diff %t1 %t2
; RUN: FileCheck -input-file=%t1 %s
; CHECK: OVERVIEW: Resource Converter
; CHECK-DAG: USAGE: rc [options] file...
; CHECK-DAG: OPTIONS:
; CHECK-NEXT: /? Display this help and exit.
; CHECK-NEXT: /C <value> Set the codepage used for input strings.
; CHECK-NEXT: /dry-run Don't compile the input; only try to parse it.
; CHECK-NEXT: /D <value> Define a symbol for the C preprocessor.
; CHECK-NEXT: /FO <value> Change the output file location.
; CHECK-NEXT: /H Display this help and exit.
; CHECK-NEXT: /I <value> Add an include path.
; CHECK-NEXT: /LN <value> Set the default language name.
; CHECK-NEXT: /L <value> Set the default language identifier.
; CHECK-NEXT: /N Null-terminate all strings in the string table.
; CHECK-NEXT: /U <value> Undefine a symbol for the C preprocessor.
; CHECK-NEXT: /V Be verbose.
; CHECK-NEXT: /X Ignore 'include' variable.
; CHECK-NEXT: /Y Suppress warnings on duplicate resource IDs.