tool/main.cpp
changeset 2004 be807e224b0e
parent 1968 4f682084c643
child 2011 04fdb4abf120
--- a/tool/main.cpp	Fri Nov 26 11:23:19 2010 +0100
+++ b/tool/main.cpp	Sat Nov 27 17:02:54 2010 +0100
@@ -340,7 +340,7 @@
                     cmd->execute(commandArgs);
                 } catch (InvalidUsageException &e) {
                     cerr << e.what() << endl << endl;
-                    cerr << binaryBaseName << " " << cmd->helpString();
+                    cerr << cmd->helpString(binaryBaseName);
                     retval = 1;
                 } catch (CommandException &e) {
                     cerr << e.what() << endl;
@@ -350,7 +350,7 @@
                     retval = 1;
                 }
             } else {
-                cout << binaryBaseName << " " << cmd->helpString();
+                cout << cmd->helpString(binaryBaseName);
             }
         } else {
             cerr << "Ambiguous command abbreviation! Matching:" << endl;