diff options
Diffstat (limited to 'cpp/demo/IceStorm/counter/Server.cpp')
-rw-r--r-- | cpp/demo/IceStorm/counter/Server.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/demo/IceStorm/counter/Server.cpp b/cpp/demo/IceStorm/counter/Server.cpp index 58a3dd64824..e0a88ba157b 100644 --- a/cpp/demo/IceStorm/counter/Server.cpp +++ b/cpp/demo/IceStorm/counter/Server.cpp @@ -34,6 +34,12 @@ main(int argc, char* argv[]) int Server::run(int argc, char* argv[]) { + if(argc > 1) + { + cerr << appName() << ": too many arguments" << endl; + return EXIT_FAILURE; + } + Ice::PropertiesPtr properties = communicator()->getProperties(); const string proxyProperty = "IceStorm.TopicManager.Proxy"; |