The Advanced Usage section of the documentation includes an example for running some sample code that states that the argument order does not matter, however, in practice init arguments must appear before the action name, and arguments for the action must appear after the action name. As such, the following simple class throws an error when run with $ python script.py test --daemon
class Dispatcher(object):
def __init__(self, daemon=False):
print daemon
def test(self):
print 'test'
The Advanced Usage section of the documentation includes an example for running some sample code that states that the argument order does not matter, however, in practice init arguments must appear before the action name, and arguments for the action must appear after the action name. As such, the following simple class throws an error when run with
$ python script.py test --daemon