options: fixed double space between option and arg in help

This commit is contained in:
zawz 2019-08-17 01:01:57 +02:00
parent 666320d9ea
commit 985612f42b

View file

@ -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());