Re: Introspecting optparse/argparse objects

2012-01-11 Thread Evan Driscoll
On 1/11/2012 19:37, alex23 wrote: > On Jan 11, 11:26 am, Evan Driscoll wrote: >> (For a concrete idea of a use case, suppose that it did not >> directly support the --help option and I wanted to write code that took >> its place.) > That's a pretty weird definition of 'concrete use case', but anyw

Re: Introspecting optparse/argparse objects

2012-01-11 Thread alex23
On Jan 11, 11:26 am, Evan Driscoll wrote: > (For a concrete idea of a use case, suppose that it did not > directly support the --help option and I wanted to write code that took > its place.) That's a pretty weird definition of 'concrete use case', but anyway... > This means that either I need t

Introspecting optparse/argparse objects

2012-01-10 Thread Evan Driscoll
I'd like to be able to be able to define options and then look at the lists. (For a concrete idea of a use case, suppose that it did not directly support the --help option and I wanted to write code that took its place.) Unfortunately, there doesn't seem to be any public API for doing this. Even i