argvard icon indicating copy to clipboard operation
argvard copied to clipboard

Merge with click?

Open untitaker opened this issue 10 years ago • 2 comments

@mitsuhiko just released click, whose API seems similar to argvard.

http://click.pocoo.org/

untitaker avatar Apr 24 '14 12:04 untitaker

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.

DasIch avatar Apr 24 '14 13:04 DasIch

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.

untitaker avatar Apr 24 '14 17:04 untitaker