argvard
argvard copied to clipboard
Merge with click?
@mitsuhiko just released click, whose API seems similar to argvard.
http://click.pocoo.org/
I haven't had time to look at click to closely yet. Based on my first impression click makes common operations more convenient - which is an area argvard could use some improvement in. However it also relies on optparse for parsing which is not a good idea.
Nevertheless I created argvard for two reasons, I wanted to be able to conveniently define commands and I wanted to be able to easily do anything as part of an option. If both of these things are similarly simple with click and @mitsuhiko is willing to drop optparse in the foreseeable future, I'd definitely like to combine efforts.
Regarding relying on optparse not being a good idea:
click is actually implemented as a wrapper around optparse and does not implement any parsing itself. The reason it’s not based on argparse is that argparse‘s design does not allow proper nesting of commands by design and has some deficiencies when it comes to POSIX compliant argument handling.