diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-08-31 12:46:04 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-08-31 12:46:04 -0230 |
commit | 13e9a8baf6d89edfd9aa7a82a977a958ccabf9a5 (patch) | |
tree | 7ef662cb5c0c2f7e04db36845b30c01b00485ba4 /cpp/src/IceGrid/Client.cpp | |
parent | Squashed commit of the following: (diff) | |
download | ice-13e9a8baf6d89edfd9aa7a82a977a958ccabf9a5.tar.bz2 ice-13e9a8baf6d89edfd9aa7a82a977a958ccabf9a5.tar.xz ice-13e9a8baf6d89edfd9aa7a82a977a958ccabf9a5.zip |
bug 1831 - print error message when too many arguments passed
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r-- | cpp/src/IceGrid/Client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index 55adf95850d..3e67844adc0 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -275,6 +275,7 @@ Client::run(int argc, char* argv[]) } if(!args.empty()) { + cerr << argv[0] << ": too many arguments" << endl; usage(); return EXIT_FAILURE; } @@ -549,7 +550,7 @@ Client::run(int argc, char* argv[]) { Lock sync(*this); - _parser = Parser::createParser(communicator(), session, admin, args.empty() && commands.empty()); + _parser = Parser::createParser(communicator(), session, admin, commands.empty()); } if(!commands.empty()) // Commands were given |