summaryrefslogtreecommitdiff
path: root/cpp/demo/IceGrid/simple/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IceGrid/simple/Client.cpp')
-rw-r--r--cpp/demo/IceGrid/simple/Client.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/demo/IceGrid/simple/Client.cpp b/cpp/demo/IceGrid/simple/Client.cpp
index 5528bdad6b7..c865ef4d239 100644
--- a/cpp/demo/IceGrid/simple/Client.cpp
+++ b/cpp/demo/IceGrid/simple/Client.cpp
@@ -47,6 +47,12 @@ HelloClient::menu()
int
HelloClient::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.