On Thu, Sep 09, 2010 at 02:45:10PM +0200, Wichert Akkerman wrote: > I've opted for a third alternative: use an entry point to define the > extra commands. If you do this in setup.py: > > entry_points=""" > [zopectl.command] > mycommand = mypackage.commands:func > """ > > you can do: > > $ bin/instance mycommand [<args>] > > The advantage of this approach is that it makes for more user friendly > commands that do not needlessly expose implementation details to the > commandline.
I like this. Marius Gedminas -- http://pov.lt/ -- Zope 3/BlueBream consulting and development
signature.asc
Description: Digital signature
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )