mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 02:57:45 +01:00
fix(HelpFormatter): lost one space between key and value (#4631)
This commit is contained in:
parent
7345bf34f9
commit
e4aaeacea8
@ -180,6 +180,7 @@ void HelpFormatter::formatOption(std::ostream& ostr, const Option& option, int w
|
|||||||
n += (int) shortPrefix().length() + (int) option.shortName().length();
|
n += (int) shortPrefix().length() + (int) option.shortName().length();
|
||||||
if (option.takesArgument())
|
if (option.takesArgument())
|
||||||
{
|
{
|
||||||
|
ostr << ' ';
|
||||||
if (!option.argumentRequired()) { ostr << '['; ++n; }
|
if (!option.argumentRequired()) { ostr << '['; ++n; }
|
||||||
ostr << option.argumentName();
|
ostr << option.argumentName();
|
||||||
n += (int) option.argumentName().length();
|
n += (int) option.argumentName().length();
|
||||||
|
Loading…
Reference in New Issue
Block a user