5 ms·
Does anyone here actually use Python? Because "not [using] some 3rd party library to write a command line interface for your python code" should mean: Use the a
by frou_dh 4y ago
Does anyone here actually use Python? Because "not [using] some 3rd party library to write a command line interface for your python code" should mean: Use the argparse module that's in the Standard Library. Not coming up with something homegrown.
- aiisjustanif 4y agoI was wondering the same thing, there is very little reason to outside of the standard library in Python. Then you have the 3rd party the ones that have been solidified as basically standard as well. You shouldn’t be downloading a package from Joe Schmoe.
- morelisp 4y agoargparse? Surely you mean optparse? Or getopt? Standard libraries too will pass.
- fragmede 4y agoor docopt. or Click. Just as long as I don't have to code up handling short vs long options by hand more than once ever.
- pjc50 4y agoThat's what I was wondering. I find argparse so helpful that I use it everywhere I need to handle a command line. It works fine.