command options in plugins?

Aaron Bentley aaron.bentley at utoronto.ca
Tue Jun 14 16:40:57 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Is there a way to specify command options for Python plugins that bzr
doesn't know about?  Simply adding an entry to bzrlib.commands.OPTIONS
doesn't work, because plugins are loaded only after parsing is complete.

I'm trying to provide all the scripts in bzrtools as plugins for the
next bzrtools release*, but some of the options, like --max-count or
- --skip-symlinks are not standard bzr options.

It's a bit of a chicken-egg problem, because the --builtin option should
control whether plugins are loaded and thus, how options are parsed.
Perhaps it would make sense to handle --builtin before normal option
parsing.

Aaron
- ---
* Scripts will also be provided.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCrvqJ0F+nu1YWqI0RAh1zAJsFXPChoKITFTlp7w6dCCRwUH3TQQCdFo3T
pom3b98PhVn8c0UTSRpBeRE=
=RrN0
-----END PGP SIGNATURE-----




More information about the bazaar mailing list