ENH: a bit more cleanup. The help should really be replaced by something like cmDocumentation

This commit is contained in:
Andy Cedilnik 2004-09-16 10:49:09 -04:00
parent cf7893b934
commit d349d6ff18
1 changed files with 2 additions and 3 deletions

View File

@ -550,12 +550,11 @@ void CommandLineArguments::GenerateHelp()
} }
} }
maxlen += 2; // For the space after option
// Create format for that string // Create format for that string
char format[80]; char format[80];
sprintf(format, "%%%ds ", static_cast<unsigned int>(maxlen-2)); sprintf(format, " %%-%ds ", static_cast<unsigned int>(maxlen));
maxlen += 4; // For the space before and after the option
// Print help for each option // Print help for each option
for ( mpit = mp.begin(); for ( mpit = mp.begin();