summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/nested/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/nested/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/nested/Client.cpp')
-rw-r--r--cpp/demo/Ice/nested/Client.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/demo/Ice/nested/Client.cpp b/cpp/demo/Ice/nested/Client.cpp
index 54cb2291601..ee847b59b99 100644
--- a/cpp/demo/Ice/nested/Client.cpp
+++ b/cpp/demo/Ice/nested/Client.cpp
@@ -32,6 +32,12 @@ main(int argc, char* argv[])
int
NestedClient::run(int argc, char* argv[])
{
+ if(argc > 1)
+ {
+ cerr << appName() << ": too many arguments" << endl;
+ return EXIT_FAILURE;
+ }
+
//
// Since this is an interactive demo we want the custom interrupt
// callback to be called when the process is interrupted.