Validating positional arguments in optparse
gruszczy at gmail.com
Fri Oct 23 12:54:38 CEST 2009
> That being said, I still stick with optparse. I prefer the dogmatic
> interface that makes all my exe use the exact same (POSIX) convention. I
> really don't care about writing /file instead of --file
I would like to keep POSIX convention too, but just wanted
OptionParser to do the dirty work of checking that arguments are all
right for me and wanted to know the reason, it doesn't.
I guess I should write a subclass, which would do just that.
More information about the Python-list