Re: [Distutils] Creating Dynamic Command Line Options from Python Egg Plugins

2008-02-21 Thread Noah Gift
On Feb 20, 2008, at 8:13 PM, Michael Hoffman wrote: > Noah Gift wrote: >> Has anyone created a command line tool, using optparse, that >> dynamically creates options from available eggs/plugins? I have a >> need to create such a tool, and was looking for an example. > Thanks Michael. That give

Re: [Distutils] Creating Dynamic Command Line Options from Python Egg Plugins

2008-02-21 Thread Michael Hoffman
Michael Hoffman wrote: > with OptionGroup(parser, "Output driver") as group: > group.add_option("-d", "--driver", default="DEFAULT", > help="set output format") > > group.add_option("--driver-help", action="store_true", > h