diff options
Diffstat (limited to 'py/demo/Ice/value/Client.py')
-rw-r--r-- | py/demo/Ice/value/Client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/demo/Ice/value/Client.py b/py/demo/Ice/value/Client.py index f226622e8ce..07458024745 100644 --- a/py/demo/Ice/value/Client.py +++ b/py/demo/Ice/value/Client.py @@ -29,6 +29,10 @@ class ObjectFactory(Ice.ObjectFactory): class Client(Ice.Application): def run(self, args): + if len(args) > 1: + print self.appName() + ": too many arguments" + return 1 + base = self.communicator().propertyToProxy('Value.Initial') initial = Demo.InitialPrx.checkedCast(base) if not initial: |