diff options
Diffstat (limited to 'cppe/demo/IceE/chat/Client.cpp')
-rwxr-xr-x | cppe/demo/IceE/chat/Client.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cppe/demo/IceE/chat/Client.cpp b/cppe/demo/IceE/chat/Client.cpp index f8c94225f40..965c57913cc 100755 --- a/cppe/demo/IceE/chat/Client.cpp +++ b/cppe/demo/IceE/chat/Client.cpp @@ -49,6 +49,12 @@ trim(const string& s) int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { + if(argc > 1) + { + fprintf(stderr, "%s: too many arguments\n", argv[0]); + return EXIT_FAILURE; + } + Ice::RouterPrx defaultRouter = communicator->getDefaultRouter(); if(!defaultRouter) { |