summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/minimal/Client.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-09-04 13:32:59 -0230
committerDwayne Boone <dwayne@zeroc.com>2007-09-04 13:32:59 -0230
commit21636696805e2963b6869122ff7268004821eb19 (patch)
treeef158217555fba17c4d173b183dcf7c6607249b3 /cpp/demo/Ice/minimal/Client.cpp
parentAdded support for Java monotonic clock (diff)
downloadice-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.cpp5
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)
{