diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-17 22:04:17 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-17 22:04:17 +0000 |
commit | 60f51d6688e98ed87d24e6e9d1f179ca5db8f07a (patch) | |
tree | 7c99579afb6e99ea7a76cc5e564db694bdc6d8aa /cpp/src/IcePack/Parser.cpp | |
parent | fixes (diff) | |
download | ice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.tar.bz2 ice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.tar.xz ice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.zip |
tons of fixes
Diffstat (limited to 'cpp/src/IcePack/Parser.cpp')
-rw-r--r-- | cpp/src/IcePack/Parser.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/cpp/src/IcePack/Parser.cpp b/cpp/src/IcePack/Parser.cpp index 377c0ca2546..821ded8ead3 100644 --- a/cpp/src/IcePack/Parser.cpp +++ b/cpp/src/IcePack/Parser.cpp @@ -39,14 +39,13 @@ void IcePack::Parser::usage() { cout << - "help Print this message.\n" - "exit, quit Exit this program.\n" - "add proxy [path [args...]] Add a proxy with an optional path and program\n" - " arguments.\n" - "remove proxy Remove a proxy.\n" - "list List all server descriptions.\n" - "shutdown Shutdown the IcePack server.\n" - << endl; + "help Print this message.\n" + "exit, quit Exit this program.\n" + "add PROXY [PATH [ARGS...]] Add PROXY with an optional PATH and program\n" + " arguments ARGS.\n" + "remove PROXY Remove PROXY.\n" + "list List all server descriptions.\n" + "shutdown Shut the IcePack server down.\n"; } void @@ -54,8 +53,7 @@ IcePack::Parser::add(const list<string>& args) { if (args.empty()) { - error("`add' requires at least a proxy argument\n" - "(type `help' for more info)"); + error("`add' requires at least one argument (type `help' for more info)"); return; } @@ -87,8 +85,7 @@ IcePack::Parser::remove(const list<string>& args) { if (args.size() != 1) { - error("`remove' requires exactly one proxy argument\n" - "(type `help' for more info)"); + error("`remove' requires exactly one argument (type `help' for more info)"); return; } |