VirtualMailManager/cli/subcommands.py
changeset 618 d8736bb80bdc
parent 611 8e9b0046bc8f
child 638 0de0b9e75c9f
child 675 d24f094d1cb5
--- a/VirtualMailManager/cli/subcommands.py	Mon Sep 24 19:13:51 2012 +0000
+++ b/VirtualMailManager/cli/subcommands.py	Thu Sep 27 19:15:09 2012 +0000
@@ -133,7 +133,7 @@
     elif ctx.argc < 4:
         ctx.hdlr.alias_delete(ctx.args[2].lower())
     else:
-        ctx.hdlr.alias_delete(ctx.args[2].lower(), ctx.args[3])
+        ctx.hdlr.alias_delete(ctx.args[2].lower(), ctx.args[3:])
 
 
 def alias_info(ctx):
@@ -220,7 +220,7 @@
     elif ctx.argc < 4:
         ctx.hdlr.catchall_delete(ctx.args[2].lower())
     else:
-        ctx.hdlr.catchall_delete(ctx.args[2].lower(), ctx.args[3])
+        ctx.hdlr.catchall_delete(ctx.args[2].lower(), ctx.args[3:])
 
 
 def catchall_info(ctx):
@@ -826,7 +826,7 @@
                     _(u'create a new alias e-mail address with one or more '
                       u'destinations')),
     'aliasdelete': cmd('aliasdelete', 'ad', alias_delete,
-                       'address [destination]',
+                       'address [destination ...]',
                        _(u'delete the specified alias e-mail address or one '
                          u'of its destinations')),
     'aliasinfo': cmd('aliasinfo', 'ai', alias_info, 'address',
@@ -848,7 +848,7 @@
                        _(u'add one or more catch-all destinations for a '
                          u'domain')),
     'catchalldelete': cmd('catchalldelete', 'cad', catchall_delete,
-                       'fqdn [destination]',
+                       'fqdn [destination ...]',
                        _(u'delete the specified catch-all destination or all '
                          u'of a domain\'s destinations')),
     'catchallinfo': cmd('catchallinfo', 'cai', catchall_info, 'fqdn',