options: fixed double space between option and arg in help
This commit is contained in:
parent
666320d9ea
commit
985612f42b
1 changed files with 2 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ void ztd::option::print_help(int leftpad, int rightpad) const
|
|||
if(this->takesArgument)
|
||||
{
|
||||
printf("<%s>", arg_name.c_str());
|
||||
rightpad -= arg_name.size() + 3;
|
||||
rightpad -= arg_name.size() + 2;
|
||||
}
|
||||
|
||||
printf("%*s%s", -1*rightpad, "", help_text.c_str());
|
||||
|
|
|
|||
Loading…
Reference in a new issue