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 /cppe/demo/IceE/latency/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 'cppe/demo/IceE/latency/Client.cpp')
-rw-r--r-- | cppe/demo/IceE/latency/Client.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cppe/demo/IceE/latency/Client.cpp b/cppe/demo/IceE/latency/Client.cpp index cc5da096040..51c90353e92 100644 --- a/cppe/demo/IceE/latency/Client.cpp +++ b/cppe/demo/IceE/latency/Client.cpp @@ -16,6 +16,12 @@ using namespace Demo; 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::PropertiesPtr properties = communicator->getProperties(); const char* proxyProperty = "Latency.Proxy"; string proxy = properties->getProperty(proxyProperty); |