From d349d6ff18c046df2c9f775a22d28f8e9c10fc7d Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 16 Sep 2004 10:49:09 -0400 Subject: ENH: a bit more cleanup. The help should really be replaced by something like cmDocumentation --- Source/kwsys/CommandLineArguments.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx index 7296ed3..d01c3bf 100644 --- a/Source/kwsys/CommandLineArguments.cxx +++ b/Source/kwsys/CommandLineArguments.cxx @@ -550,12 +550,11 @@ void CommandLineArguments::GenerateHelp() } } - maxlen += 2; // For the space after option - // Create format for that string char format[80]; - sprintf(format, "%%%ds ", static_cast(maxlen-2)); + sprintf(format, " %%-%ds ", static_cast(maxlen)); + maxlen += 4; // For the space before and after the option // Print help for each option for ( mpit = mp.begin(); -- cgit v0.12