I like ArgParse: it’s a much needed update to the old OptParse. However, I’ve always felt that OptParse was a little wordy and it looks like ArgParse is following that tradition. Apparently Zed Shaw feels the way I do as he proposed a leaner API on Twitter:
|
|
It’s definitely a step in the right direction. The build_parser function should be in the API. That way the developer only has to specify the arguments data structure and hand it off with no extra work involved. Great work, Zed.
Although I just had an idea: a docstring mini-language.
|
|