-
Notifications
You must be signed in to change notification settings - Fork 218
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
Switch from docopt to click or argparse for sparse #115
Comments
|
I'll take that as permission to put together a PR. |
Permission granted! |
I've been hacking on a argparse branch a little bit. Still has a bit to go though..... Tried to move each subcommand into a package in streamparse/bin. The sparse.py package has a hook to load the all the subparsers that it finds in that directory. That way subcommands can be managed in a rather independent way. |
@hodgesds I like that general approach. It would cut out an unnecessary external dependency for us. |
Closed by #152. |
I know docopt is pretty popular at Parse.ly, but it doesn't offer great usability for something like
sparse
that has several subcommands.For example, I would fully expect:
to give me some
run
-specific, help, but it doesn't, and just prints out the whole giant usage string. The more commands we add, the worse this situation gets, as people just have to guess what the commands are for.Click's
click.command()
decorator seems like a much nicer option for handling many commands,, although even just basicargparse
is better suited to the task than docopt.The text was updated successfully, but these errors were encountered: