VirtualMailManager/cli/subcommands.py
branchv0.6.x
changeset 448 45c917e6a386
parent 447 c31d604e26d3
child 455 b15960e9c53c
equal deleted inserted replaced
447:c31d604e26d3 448:45c917e6a386
   328     """allow all named service and block the uncredited."""
   328     """allow all named service and block the uncredited."""
   329     if ctx.argc < 3:
   329     if ctx.argc < 3:
   330         usage(EX_MISSING_ARGS, _(u'Missing domain name.'), ctx.scmd)
   330         usage(EX_MISSING_ARGS, _(u'Missing domain name.'), ctx.scmd)
   331     services = []
   331     services = []
   332     force = False
   332     force = False
   333     if ctx.argc is 4:
   333     if ctx.argc is 3:
       
   334         pass
       
   335     elif ctx.argc is 4:
   334         arg = ctx.args[3].lower()
   336         arg = ctx.args[3].lower()
   335         if arg in SERVICES:
   337         if arg in SERVICES:
   336             services.append(arg)
   338             services.append(arg)
   337         elif arg == 'force':
   339         elif arg == 'force':
   338             force = True
   340             force = True