diff options
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 |