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/Glacier2/chat/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/Glacier2/chat/Client.cpp')
-rwxr-xr-x | cpp/demo/Glacier2/chat/Client.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/demo/Glacier2/chat/Client.cpp b/cpp/demo/Glacier2/chat/Client.cpp index 3f56a9845f4..75aeac9e946 100755 --- a/cpp/demo/Glacier2/chat/Client.cpp +++ b/cpp/demo/Glacier2/chat/Client.cpp @@ -94,6 +94,12 @@ public: virtual int 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. |