diff options
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 25612b7e..52053df 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -1778,9 +1778,10 @@ void basic_parser_impl::printOptionInfo(const Option &O, if (!ValName.empty()) { if (O.getMiscFlags() & PositionalEatsArgs) { outs() << " <" << getValueStr(O, ValName) << ">..."; - } else { + } else if (O.getValueExpectedFlag() == ValueOptional) + outs() << "[=<" << getValueStr(O, ValName) << ">]"; + else outs() << "=<" << getValueStr(O, ValName) << '>'; - } } Option::printHelpStr(O.HelpStr, GlobalWidth, getOptionWidth(O)); |