Re: let optionparse.Optionparser ignore unknown command line switches.

2010-08-02 Thread Michele Simionato
On Aug 1, 1:08 pm, News123 wrote: > I wondered, whether there's a simple/standard way to let > the Optionparser just ignore unknown command line switches. > > thanks in advance for any ideas I will plug in my own work on plac: http://pypi.python.org/pypi/plac Your problem would be solved as follo

Re: let optionparse.Optionparser ignore unknown command line switches.

2010-08-02 Thread News123
On 08/01/2010 07:53 PM, Jon Clements wrote: > On 1 Aug, 16:43, News123 wrote: >> On 08/01/2010 05:34 PM, Steven W. Orr wrote: >> >> >> >>> On 08/01/10 07:27, quoth News123: On 08/01/2010 01:08 PM, News123 wrote: > I wondered, whether there's a simple/standard way to let > the Optionpa

Re: let optionparse.Optionparser ignore unknown command line switches.

2010-08-01 Thread Jon Clements
On 1 Aug, 16:43, News123 wrote: > On 08/01/2010 05:34 PM, Steven W. Orr wrote: > > > > > On 08/01/10 07:27, quoth News123: > >> On 08/01/2010 01:08 PM, News123 wrote: > >>> I wondered, whether there's a simple/standard way to let > >>> the Optionparser just ignore unknown command line switches. >

Re: let optionparse.Optionparser ignore unknown command line switches.

2010-08-01 Thread News123
On 08/01/2010 05:34 PM, Steven W. Orr wrote: > On 08/01/10 07:27, quoth News123: >> On 08/01/2010 01:08 PM, News123 wrote: >>> I wondered, whether there's a simple/standard way to let >>> the Optionparser just ignore unknown command line switches. >>> >> >> In order to illustrate, what I try to ac

Re: let optionparse.Optionparser ignore unknown command line switches.

2010-08-01 Thread Steven W. Orr
On 08/01/10 07:27, quoth News123: > On 08/01/2010 01:08 PM, News123 wrote: >> I wondered, whether there's a simple/standard way to let >> the Optionparser just ignore unknown command line switches. >> > > In order to illustrate, what I try to achieve: > > > import optparse > parser = optparse.O

Re: let optionparse.Optionparser ignore unknown command line switches.

2010-08-01 Thread News123
On 08/01/2010 01:08 PM, News123 wrote: > I wondered, whether there's a simple/standard way to let > the Optionparser just ignore unknown command line switches. > In order to illustrate, what I try to achieve: import optparse parser = optparse.OptionParser() parser.add_option("-t","--test",des

let optionparse.Optionparser ignore unknown command line switches.

2010-08-01 Thread News123
I wondered, whether there's a simple/standard way to let the Optionparser just ignore unknown command line switches. thanks in advance for any ideas -- http://mail.python.org/mailman/listinfo/python-list