diff options
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. |