[llvm] 329ebb8 - [dsymutil] Fix short options displayed in the help message.
Xing GUO via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 19:17:47 PDT 2020
Author: Xing GUO
Date: 2020-04-29T10:20:13+08:00
New Revision: 329ebb85a90ecc61240bff95cabd73552d22ce2a
URL: https://github.com/llvm/llvm-project/commit/329ebb85a90ecc61240bff95cabd73552d22ce2a
DIFF: https://github.com/llvm/llvm-project/commit/329ebb85a90ecc61240bff95cabd73552d22ce2a.diff
LOG: [dsymutil] Fix short options displayed in the help message.
This patch helps make the short options displayed in the help message be consistant with the description in https://llvm.org/docs/CommandGuide/dsymutil.html
Reviewed By: JDevlieghere, aprantl
Differential Revision: https://reviews.llvm.org/D78476
Added:
Modified:
llvm/test/tools/dsymutil/cmdline.test
llvm/tools/dsymutil/Options.td
Removed:
################################################################################
diff --git a/llvm/test/tools/dsymutil/cmdline.test b/llvm/test/tools/dsymutil/cmdline.test
index 701de29637dd..e66f4a589fba 100644
--- a/llvm/test/tools/dsymutil/cmdline.test
+++ b/llvm/test/tools/dsymutil/cmdline.test
@@ -14,17 +14,18 @@ HELP: -no-swiftmodule-timestamp
HELP: -num-threads <threads>
HELP: -object-prefix-map <prefix=remapped>
HELP: -oso-prepend-path <path>
-HELP: -o <filename>
+HELP: {{ -o <filename> }}
HELP: -papertrail
HELP: -remarks-output-format <format>
HELP: -remarks-prepend-path <path>
HELP: -symbol-map
HELP: -symtab
+HELP: {{ -S }}
HELP: -toolchain
HELP: -update
HELP: -verbose
HELP: -verify
-HELP: -y
+HELP: {{ -y }}
HELP-NOT: -reverse-iterate
RUN: dsymutil --version 2>&1 | FileCheck --check-prefix=VERSION %s
diff --git a/llvm/tools/dsymutil/Options.td b/llvm/tools/dsymutil/Options.td
index 5360bf09ac75..9292fb802151 100644
--- a/llvm/tools/dsymutil/Options.td
+++ b/llvm/tools/dsymutil/Options.td
@@ -44,7 +44,7 @@ def dump_debug_map: F<"dump-debug-map">,
HelpText<"Parse and dump the debug map to standard output. Not DWARF link will take place.">,
Group<grp_general>;
-def yaml_input: F<"y">,
+def yaml_input: Flag<["-", "--"], "y">,
HelpText<"Treat the input file is a YAML debug map rather than a binary.">,
Group<grp_general>;
@@ -52,7 +52,7 @@ def papertrail: F<"papertrail">,
HelpText<"Embed warnings in the linked DWARF debug info.">,
Group<grp_general>;
-def assembly: F<"S">,
+def assembly: Flag<["-", "--"], "S">,
HelpText<"Output textual assembly instead of a binary dSYM companion file.">,
Group<grp_general>;
@@ -93,16 +93,16 @@ def: Flag<["-"], "u">,
HelpText<"Alias for --update">,
Group<grp_general>;
-def output: Separate<["--", "-"], "o">,
+def output: Separate<["-", "--"], "o">,
MetaVarName<"<filename>">,
HelpText<"Specify the output file. Defaults to <input file>.dwarf">,
Group<grp_general>;
def: Separate<["--", "-"], "out">,
Alias<output>,
- HelpText<"Alias for --o">,
+ HelpText<"Alias for -o">,
Group<grp_general>;
def: Joined<["--", "-"], "out=">, Alias<output>;
-def: Joined<["--", "-"], "o=">, Alias<output>;
+def: Joined<["-", "--"], "o=">, Alias<output>;
def oso_prepend_path: Separate<["--", "-"], "oso-prepend-path">,
MetaVarName<"<path>">,
More information about the llvm-commits
mailing list