Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument Order Matters #5

Open
nicksloan opened this issue Aug 23, 2012 · 0 comments
Open

Argument Order Matters #5

nicksloan opened this issue Aug 23, 2012 · 0 comments

Comments

@nicksloan
Copy link

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant