Adding options to commands
pickscrape at gmail.com
Wed Jun 4 22:20:52 BST 2008
I was just looking at getting the diffstat pluging to add a --stat
option to the diff command, and so needed to know how to add options to
an existing command.
For an example I was pointed at the xml-output plugin, which adds
options to a number of builtin commands.
Looking at the code, it seems the additional options are added by
subclassing the builtin command handler.
This made me wonder what happens if more than one plugin wants to add
options to the same builtin command. Does this magically work, or is it
a limitation of the plugin system?
More information about the bazaar