From 58a7cedc0e0fb7407e748bcbe054941b07973263 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik <andy.cedilnik@kitware.com> Date: Thu, 16 Sep 2004 10:49:09 -0400 Subject: [PATCH] ENH: a bit more cleanup. The help should really be replaced by something like cmDocumentation --- CommandLineArguments.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CommandLineArguments.cxx b/CommandLineArguments.cxx index 860b7912..00f28c4d 100644 --- a/CommandLineArguments.cxx +++ b/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(); -- GitLab