On Nov 4, 12:49 pm, Remy Blank <[EMAIL PROTECTED]> wrote:
> mixedpuppy wrote:
> > I would also be interested in having the other command line arguments
> > handled through an interface (e.g. the inherit arg for trac.ini).  I
> > think a good example of the need for that is the oforge-admin (http://
> > code.optaros.com/trac/oforge/browser/trunk/plugins/oforgeplugin/oforge/
> > console.py).  I looked at doing something similar, and realized that
> > there was no way to add command line arguments.
>
> Do you mean arguments of the form "-o" or "--output"? Those are just
> passed as normal positional arguments, so you could parse them in the
> command handler.
>
> I'm not sure what you mean with "the inherit arg from trac.ini", though...

trac-admin initenv foo --inherit /path/to/trac.ini

do_initenv in trac.admin.console only passes specific arguments to the
environment object, there is no way to write an extension to add/
implement new arguments to the existing command.  If all the arguments
were passed through, you could write a plugin implementing an
IEnvironmentSetupParticipant that supports additional features, but
you wouldn't have control over what order that happened in.  The only
solution atm is to replace trac-admin.

Regards,
Shane




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to