diff options
Diffstat (limited to 'py/demo/IceGrid/simple/Client.py')
-rw-r--r-- | py/demo/IceGrid/simple/Client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/demo/IceGrid/simple/Client.py b/py/demo/IceGrid/simple/Client.py index 4da93c56a7c..28ab2de751c 100644 --- a/py/demo/IceGrid/simple/Client.py +++ b/py/demo/IceGrid/simple/Client.py @@ -25,6 +25,10 @@ x: exit class Client(Ice.Application): def run(self, args): + if len(args) > 1: + print self.appName() + ": too many arguments" + return 1 + hello = None try: hello = Demo.HelloPrx.checkedCast(self.communicator().stringToProxy("hello")) |