Re: [optparse] Problem with getting an option value

2007-04-06 Thread Mel Wilson
Peter Otten wrote: > Lucas Malor wrote: > >> Hello all. I'm trying to do a little script. Simply I want to make a list >> of all options with them default values. If the option is not specified in >> the command line, the script must try to read it in a config.ini file. If >> it's not present also

Re: [optparse] Problem with getting an option value

2007-04-06 Thread Peter Otten
Lucas Malor wrote: > Hello all. I'm trying to do a little script. Simply I want to make a list > of all options with them default values. If the option is not specified in > the command line, the script must try to read it in a config.ini file. If > it's not present also there, it must set the def

[optparse] Problem with getting an option value

2007-04-06 Thread Lucas Malor
Hello all. I'm trying to do a little script. Simply I want to make a list of all options with them default values. If the option is not specified in the command line, the script must try to read it in a config.ini file. If it's not present also there, it must set the default value. The problem