diff --git a/llvm/test/tools/dsymutil/cmdline.test b/llvm/test/tools/dsymutil/cmdline.test --- a/llvm/test/tools/dsymutil/cmdline.test +++ b/llvm/test/tools/dsymutil/cmdline.test @@ -14,17 +14,18 @@ HELP: -num-threads HELP: -object-prefix-map HELP: -oso-prepend-path -HELP: -o +HELP: {{ -o }} HELP: -papertrail HELP: -remarks-output-format HELP: -remarks-prepend-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 --- a/llvm/tools/dsymutil/Options.td +++ b/llvm/tools/dsymutil/Options.td @@ -44,7 +44,7 @@ HelpText<"Parse and dump the debug map to standard output. Not DWARF link will take place.">, Group; -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; @@ -52,7 +52,7 @@ HelpText<"Embed warnings in the linked DWARF debug info.">, Group; -def assembly: F<"S">, +def assembly: Flag<["-", "--"], "S">, HelpText<"Output textual assembly instead of a binary dSYM companion file.">, Group; @@ -93,16 +93,16 @@ HelpText<"Alias for --update">, Group; -def output: Separate<["--", "-"], "o">, +def output: Separate<["-", "--"], "o">, MetaVarName<"">, HelpText<"Specify the output file. Defaults to .dwarf">, Group; def: Separate<["--", "-"], "out">, Alias, - HelpText<"Alias for --o">, + HelpText<"Alias for -o">, Group; def: Joined<["--", "-"], "out=">, Alias; -def: Joined<["--", "-"], "o=">, Alias; +def: Joined<["-", "--"], "o=">, Alias; def oso_prepend_path: Separate<["--", "-"], "oso-prepend-path">, MetaVarName<"">,