| Newsgroups |
gmane.comp.python.twisted.bugs |
| Message-ID |
<[email protected]> |
New submission from freddy311082 <None>:
I have a litter problem...
I'm using twisted.python.usage.Options class to parse the command line, and I need to add command to my class dynamically and I can't do it... for example...
from twisted.python import usage
class MyOptions(MyBaseOptions):
optParameters = [
['module', 'a', 7, None],
['vendor', 'b', 8, None],
['cheap1', 'c', 9, None]
]
optFlags = [
['fast','','help of fast otro'],
['good1','g', 'help of flag'],
['help', 'h', 'Display this help and exit.'],
['test','t','other fast']
]
command_line = ['-h']
options = MyOptions()
options.parseOptions(command_line)
///// here ///// --> how can I say something like options.addNewOption(new_option) ??
I need that because I have 1 class that it options depende of the options from other classes...
somebody help me plase !!!!!
----------
Type : enhancement
Component: core
Keywords :
Priority : highest
Nosy :
----------
http://twistedmatrix.com/trac/ticket/3855