Skip to content

Commit

Permalink
fix(HelpFormatter): lost one space between key and value (pocoproject…
Browse files Browse the repository at this point in the history
  • Loading branch information
siren186 authored Aug 17, 2024
1 parent 7345bf3 commit e4aaeac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Util/src/HelpFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ void HelpFormatter::formatOption(std::ostream& ostr, const Option& option, int w
n += (int) shortPrefix().length() + (int) option.shortName().length();
if (option.takesArgument())
{
ostr << ' ';
if (!option.argumentRequired()) { ostr << '['; ++n; }
ostr << option.argumentName();
n += (int) option.argumentName().length();
Expand Down

0 comments on commit e4aaeac

Please sign in to comment.