Re: Retry:Question about optparse/OptionParser callback.

2007-02-10 Thread Steven Bethard
Steven W. Orr wrote: > I'm writing a program that needs to process options. Due to the nature > of the program with its large number of commandline options, I would > like to write a callback to be set inside add_option. > > Something like this: > > parser.add_option("-b", action="callback", ca

Re: Retry:Question about optparse/OptionParser callback.

2007-02-09 Thread Peter Otten
Steven W. Orr wrote: > I decided I could be more articulate. I hope this helps. In case James did not guess right: try to provide more details about /what/ you want to achieve rather than /how/ you want to get there. And please don't open a third thread for it. Peter -- http://mail.python.org/

Re: Retry:Question about optparse/OptionParser callback.

2007-02-09 Thread James Stroud
Steven W. Orr wrote: > I decided I could be more articulate. I hope this helps. > > I'm writing a program that needs to process options. Due to the nature > of the program with its large number of commandline options, I would > like to write a callback to be set inside add_option. > > Something