diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-09-04 13:32:59 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-09-04 13:32:59 -0230 |
commit | 21636696805e2963b6869122ff7268004821eb19 (patch) | |
tree | ef158217555fba17c4d173b183dcf7c6607249b3 /cpp/demo/Ice/minimal/Client.cpp | |
parent | Added support for Java monotonic clock (diff) | |
download | ice-21636696805e2963b6869122ff7268004821eb19.tar.bz2 ice-21636696805e2963b6869122ff7268004821eb19.tar.xz ice-21636696805e2963b6869122ff7268004821eb19.zip |
bug 1831 - changed demos as well to warn about extra arguments
Diffstat (limited to 'cpp/demo/Ice/minimal/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/minimal/Client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/demo/Ice/minimal/Client.cpp b/cpp/demo/Ice/minimal/Client.cpp index 583379642ef..e585d82bb74 100644 --- a/cpp/demo/Ice/minimal/Client.cpp +++ b/cpp/demo/Ice/minimal/Client.cpp @@ -22,6 +22,11 @@ main(int argc, char* argv[]) try { communicator = Ice::initialize(argc, argv); + if(argc > 1) + { + cerr << argv[0] << ": too many arguments" << endl; + return EXIT_FAILURE; + } HelloPrx hello = HelloPrx::checkedCast(communicator->stringToProxy("hello:tcp -p 10000")); if(!hello) { |