summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-16 14:49:09 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-16 14:49:09 (GMT)
commitd349d6ff18c046df2c9f775a22d28f8e9c10fc7d (patch)
tree6824c5d3184840ae92d3394545e4bf3227e21c03
parentcf7893b9340a7db1af5bb451709ff4555bea3475 (diff)
downloadCMake-d349d6ff18c046df2c9f775a22d28f8e9c10fc7d.zip
CMake-d349d6ff18c046df2c9f775a22d28f8e9c10fc7d.tar.gz
CMake-d349d6ff18c046df2c9f775a22d28f8e9c10fc7d.tar.bz2
ENH: a bit more cleanup. The help should really be replaced by something like cmDocumentation
-rw-r--r--Source/kwsys/CommandLineArguments.cxx5
1 files 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<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
for ( mpit = mp.begin();