summaryrefslogtreecommitdiffstats
path: root/pykolab/cli
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-11-21 14:43:59 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-11-21 14:43:59 +0100
commit6bf3cdc14e8b41e303f5204545c380c8813a30a5 (patch)
tree7daca2f650e0e1b5ae9e88ded89ad47dc18bc74c /pykolab/cli
parent998804c66908f84e5e7b2da4685dd3043b8e8c1c (diff)
downloadpykolab-6bf3cdc14e8b41e303f5204545c380c8813a30a5.tar.gz
Add an option --dry-run to undelete-mailbox cmd
Diffstat (limited to 'pykolab/cli')
-rw-r--r--pykolab/cli/cmd_undelete_mailbox.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pykolab/cli/cmd_undelete_mailbox.py b/pykolab/cli/cmd_undelete_mailbox.py
index 46eec85..8f9c791 100644
--- a/pykolab/cli/cmd_undelete_mailbox.py
+++ b/pykolab/cli/cmd_undelete_mailbox.py
@@ -30,6 +30,14 @@ conf = pykolab.getConf()
def __init__():
commands.register('undelete_mailbox', execute, description=description())
+def cli_options():
+ my_option_group = conf.add_cli_parser_option_group(_("CLI Options"))
+ my_option_group.add_option( '--dry-run',
+ dest = "dry_run",
+ action = "store_true",
+ default = False,
+ help = _("Do not actually execute, but state what would have been executed."))
+
def description(*args, **kw):
return _("Recover mailboxes previously deleted.")