From 21636696805e2963b6869122ff7268004821eb19 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Tue, 4 Sep 2007 13:32:59 -0230 Subject: bug 1831 - changed demos as well to warn about extra arguments --- py/demo/Ice/async/Client.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'py/demo/Ice/async/Client.py') diff --git a/py/demo/Ice/async/Client.py b/py/demo/Ice/async/Client.py index 0c3f1e2782e..25dfc34fcbe 100644 --- a/py/demo/Ice/async/Client.py +++ b/py/demo/Ice/async/Client.py @@ -36,6 +36,10 @@ x: exit class Client(Ice.Application): def run(self, args): + if len(args) > 1: + print self.appName() + ": too many arguments" + return 1 + hello = Demo.HelloPrx.checkedCast(self.communicator().propertyToProxy('Hello.Proxy')) if not hello: print args[0] + ": invalid proxy" -- cgit v1.2.3