llvm.org GIT mirror llvm / 45c7c09
[llvm-dwarfdump] Add -o to help text and remove --out-file from doc -o is in the documentation, but not in the llvm-dwarfdump help text. This patch adds it by inverting the -o and --out-file aliasing. It also removes --out-file from the documentation, since we don't really want people to be using this switch in practice. Reviewed by: aprantl, JDevlieghere, dblaikie Differential Revision: https://reviews.llvm.org/D63013 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363044 91177308-0d34-0410-b5e6-96231b3b80d8 James Henderson a month ago
3 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
6868 Lookup
in the debug information and print out the file,
6969 function, block, and line table details.
7070
71 .. option:: -o , --out-file=
71 .. option:: -o
7272
7373 Redirect output to a file specified by .
7474
None RUN: llvm-dwarfdump -h 2>&1 | FileCheck --check-prefix=HELP %s
1 RUN: llvm-dwarfdump --help 2>&1 | FileCheck --check-prefix=HELP %s
0 RUN: llvm-dwarfdump -h 2>&1 | FileCheck --check-prefix=HELP %s --implicit-check-not=out-file
1 RUN: llvm-dwarfdump --help 2>&1 | FileCheck --check-prefix=HELP %s --implicit-check-not=out-file
22 HELP: USAGE: llvm-dwarfdump{{[^ ]*}} [options]
33 HELP-NOT: -reverse-iterate
44 HELP: Color Options
1212 HELP: -ignore-case
1313 HELP: -lookup
1414 HELP: -name
15 HELP: -o=
1516 HELP: -parent-recurse-depth=
1617 HELP: -recurse-depth=
1718 HELP: -regex
159159 "available file, function, block and line table details."),
160160 value_desc("address"), cat(DwarfDumpCategory));
161161 static opt
162 OutputFilename("out-file", cl::init("-"),
162 OutputFilename("o", cl::init("-"),
163163 cl::desc("Redirect output to the specified file."),
164 cl::value_desc("filename"));
165 static alias OutputFilenameAlias("o", desc("Alias for -out-file."),
166 aliasopt(OutputFilename),
167 cat(DwarfDumpCategory));
164 cl::value_desc("filename"), cat(DwarfDumpCategory));
165 static alias OutputFilenameAlias("out-file", desc("Alias for -o."),
166 aliasopt(OutputFilename));
168167 static opt
169168 UseRegex("regex",
170169 desc("Treat any strings as regular expressions when "