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

Avoid elif on passhport-admin #58

Closed
elg opened this issue Jun 18, 2015 · 1 comment
Closed

Avoid elif on passhport-admin #58

elg opened this issue Jun 18, 2015 · 1 comment

Comments

@elg
Copy link
Contributor

elg commented Jun 18, 2015

Even If I've said it was a good way to do it, the code become too complex on argument parsing with a lot of if and elif.
We need to find a new way to do it. TIdeas I have:

  1. Read the docopt doc / ask community about this problem.
  2. Create a simple If / elif on the first level of command and then call function for subcommands.
  3. Looking for a docopt replacement.
@VeryTastyTomato
Copy link
Contributor

Done awesomely by elg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants