Commit 420f6496 authored by Romain Bignon's avatar Romain Bignon

fixed multiple arguments commands calls

parent 7fa0cef6
......@@ -78,7 +78,7 @@ class Application:
return self.command(arguments[0], *arguments[1:])
def login(func):
def inc(self):
def inc(self, *args, **kwargs):
if not self.options.password:
self.options.password = self.prompt_password('Password: ')
......@@ -97,7 +97,7 @@ class Application:
except LoginError, err:
print >>sys.stderr, 'Error: %s' % err
return 1
return func(self)
return func(self, *args, **kwargs)
return inc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment