VirtualMailManager/cli/subcommands.py
branchv0.7.x
changeset 679 b6ef80a8daa2
parent 676 2bc11dada296
child 681 4cab983479db
equal deleted inserted replaced
678:5dba8063b708 679:b6ef80a8daa2
   680                "subcommand.\n\nEach specified service will be enabled/"
   680                "subcommand.\n\nEach specified service will be enabled/"
   681                "usable. All other services will be deactivated/unusable. "
   681                "usable. All other services will be deactivated/unusable. "
   682                "Possible service names are: imap, pop3, sieve and smtp.\nThe "
   682                "Possible service names are: imap, pop3, sieve and smtp.\nThe "
   683                "new service set will affect only those accounts for which "
   683                "new service set will affect only those accounts for which "
   684                "the set has not been overridden. If you want to restore the "
   684                "the set has not been overridden. If you want to restore the "
   685                "default to all accounts, you may pass --force.")),
   685                "default to all accounts, you may pass the option--force.")),
   686            formatter_class=RawDescriptionHelpFormatter)
   686            formatter_class=RawDescriptionHelpFormatter)
   687     ds.add_argument('fqdn', help=_('a fully qualified domain name'))
   687     ds.add_argument('fqdn', help=_('a fully qualified domain name'))
   688     ds.add_argument('-s', choices=SERVICES,
   688     ds.add_argument('-s', choices=SERVICES,
   689                     help=_('services which should be usable'),
   689                     help=_('services which should be usable'),
   690                     metavar='SERVICE', nargs='+', dest='services')
   690                     metavar='SERVICE', nargs='+', dest='services')
   696            help=_('update the transport of the specified domain'),
   696            help=_('update the transport of the specified domain'),
   697            epilog=fill(_("A new transport for the indicated domain can be set "
   697            epilog=fill(_("A new transport for the indicated domain can be set "
   698                "with this subcommand.\n\nThe new transport will affect only "
   698                "with this subcommand.\n\nThe new transport will affect only "
   699                "those accounts for which the transport has not been "
   699                "those accounts for which the transport has not been "
   700                "overridden. If you want to restore the default to all "
   700                "overridden. If you want to restore the default to all "
   701                "accounts, you may pass --force.")),
   701                "accounts, you may give the option --force.")),
   702            formatter_class=RawDescriptionHelpFormatter)
   702            formatter_class=RawDescriptionHelpFormatter)
   703     dt.add_argument('fqdn', help=_('a fully qualified domain name'))
   703     dt.add_argument('fqdn', help=_('a fully qualified domain name'))
   704     dt.add_argument('transport', help=_('a Postfix transport (transport: or '
   704     dt.add_argument('transport', help=_('a Postfix transport (transport: or '
   705                                         'transport:nexthop)'))
   705                                         'transport:nexthop)'))
   706     dt.add_argument('--force', action='store_true',
   706     dt.add_argument('--force', action='store_true',