diff options
Diffstat (limited to 'cpp/demo/Glacier2/callback/Client.cpp')
-rw-r--r-- | cpp/demo/Glacier2/callback/Client.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/demo/Glacier2/callback/Client.cpp b/cpp/demo/Glacier2/callback/Client.cpp index baf24c50747..e37e899c472 100644 --- a/cpp/demo/Glacier2/callback/Client.cpp +++ b/cpp/demo/Glacier2/callback/Client.cpp @@ -48,6 +48,12 @@ menu() int CallbackClient::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. |