extracting option groups
"Daniel Mahler" <[email protected]> Sat, 14 Oct 2006 01:44:43 +0100
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
Is there a way to extract from a Values object
options that come from a particular OptionGroup?
I would like to be able to write something like
(options, argv) = opt.parse_args()
myfun(arg1, arg2, **vars(group.extract(opt))
where group is an OptionGroup that was used to add to the parser
all the options appropriate for myfun,
and group.extract is the hypothetical method I am suggesting.
Is there already some (other) way to do this?
If not, what would be needed to add something like it?
thanks
Daniel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642