[PATCH]: Optional explanation for options

Harald Meland harald.meland at usit.uio.no
Sun Sep 11 10:54:23 BST 2005


[Magnus Therning]

> OK, here's a second stab at it. Let me know what you think. It isn't
> complete, but it's enough to get my thought across, I hope.
>
> Commands are written like this:
>
>  class cmd_my_command(Command):
>      ...
>      takes_options = bzrlib.commands.prep_ops('option1', option2='description')


How would you add a dash-containing option (like "--no-backup") with a
non-global description using this syntax?
-- 
Harald




More information about the bazaar mailing list