Permalink
Browse files

Merge pull request #43 from daevaorn/patch-1

Remove positional arguments length check when calling command as python ...
  • Loading branch information...
2 parents b88c9f4 + b6d51ac commit 39aae7f73baaf90470266aa15ee1ca2868ff25dc @piranha committed Jun 6, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 opster.py
View
@@ -857,9 +857,6 @@ def call_cmd_regular(func, opts):
'''
def inner(*args, **kwargs):
arginfo = inspect.getargspec(func)
- if len(args) > len(arginfo.args):
- raise TypeError('You have supplied more positional arguments'
- ' than applicable')
# short name, long name, default, help, (maybe) completer
funckwargs = dict((o.pyname, o.default) for o in opts)

0 comments on commit 39aae7f

Please sign in to comment.