diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-14 20:25:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-14 20:25:08 +0000 |
commit | b8cab9227a0f6ffbdaae33e3c64268e265008a6a (patch) | |
tree | 0f1b5e70c2370fc9b8093bf2b9066e411bbe109d /lib/Support/CommandLine.cpp | |
parent | b34dd13a0f306178aec9d7cfb848fd727f6f818f (diff) |
Fix command-line option printing to print two spaces where needed,
instead of requiring all "short description" strings to begin with
two spaces. This makes these strings less mysterious, and it fixes
some cases where short description strings mistakenly did not
begin with two spaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r-- | lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 571b033867..498131390c 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -953,7 +953,7 @@ void generic_parser_base::printOptionInfo(const Option &O, for (unsigned i = 0, e = getNumOptions(); i != e; ++i) { size_t NumSpaces = GlobalWidth-strlen(getOption(i))-8; cout << " =" << getOption(i) << std::string(NumSpaces, ' ') - << " - " << getDescription(i) << "\n"; + << " - " << getDescription(i) << "\n"; } } else { if (O.HelpStr[0]) |