Re: Validating positional arguments in optparse

2009-10-23 Thread Robert Kern
On 2009-10-23 05:54 AM, Filip Gruszczyński wrote: 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 j

Re: Validating positional arguments in optparse

2009-10-23 Thread Filip Gruszczyński
> 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

Re: Validating positional arguments in optparse

2009-10-23 Thread Jean-Michel Pichavant
Filip Gruszczyński wrote: optparse module is quite smart, when it comes to validating options, like assuring, that certain option must be an integer. However, I can't find any information about validating, that positional arguments were provided and I can't find methods, that would allow defining

Validating positional arguments in optparse

2009-10-23 Thread Filip Gruszczyński
optparse module is quite smart, when it comes to validating options, like assuring, that certain option must be an integer. However, I can't find any information about validating, that positional arguments were provided and I can't find methods, that would allow defining positional argument in Opti