640 di.set_defaults(func=domain_info, scmd='domaininfo') |
640 di.set_defaults(func=domain_info, scmd='domaininfo') |
641 |
641 |
642 do = a('domainnote', aliases=('do',), |
642 do = a('domainnote', aliases=('do',), |
643 help=_('set, update or delete the note of the given domain'), |
643 help=_('set, update or delete the note of the given domain'), |
644 epilog=_('With this subcommand, it is possible to attach a note to ' |
644 epilog=_('With this subcommand, it is possible to attach a note to ' |
645 'the specified domain. Without an argument, an existing ' |
645 'the specified domain. In order to delete an existing ' |
646 'note is removed.')) |
646 'note, pass the -d option.')) |
647 do.add_argument('fqdn', help=_('a fully qualified domain name')) |
647 do.add_argument('fqdn', help=_('a fully qualified domain name')) |
648 do.add_argument('-n', metavar='NOTE', dest='note', |
648 do_grp = do.add_mutually_exclusive_group(required=True) |
649 help=_('the note that should be set')) |
649 do_grp.add_argument('-d', action='store_true', dest='delete', |
|
650 help=_('delete the note, if any')) |
|
651 do_grp.add_argument('-n', metavar='NOTE', dest='note', |
|
652 help=_('the note that should be set')) |
650 do.set_defaults(func=domain_note, scmd='domainnote') |
653 do.set_defaults(func=domain_note, scmd='domainnote') |
651 |
654 |
652 dq = a('domainquota', aliases=('dq',), |
655 dq = a('domainquota', aliases=('dq',), |
653 help=_('update the quota limit of the specified domain'), |
656 help=_('update the quota limit of the specified domain'), |
654 epilog=fill(_("This subcommand is used to configure a new quota " |
657 epilog=fill(_("This subcommand is used to configure a new quota " |
797 ui.set_defaults(func=user_info, scmd='userinfo') |
800 ui.set_defaults(func=user_info, scmd='userinfo') |
798 |
801 |
799 un = a('username', aliases=('un',), |
802 un = a('username', aliases=('un',), |
800 help=_('set, update or delete the real name for an address'), |
803 help=_('set, update or delete the real name for an address'), |
801 epilog=fill(_("The user's real name can be set/updated with this " |
804 epilog=fill(_("The user's real name can be set/updated with this " |
802 "subcommand.\n\nIf no name is given, the value stored for the " |
805 "subcommand.\n\nIn order to delete the value stored for the " |
803 "account is erased.")), |
806 "account, pass the -d option.")), |
804 formatter_class=RawDescriptionHelpFormatter) |
807 formatter_class=RawDescriptionHelpFormatter) |
805 un.add_argument('address', |
808 un.add_argument('address', |
806 help=_("an account's e-mail address (local-part@fqdn)")) |
809 help=_("an account's e-mail address (local-part@fqdn)")) |
807 un.add_argument('-n', help=_("a user's real name"), metavar='NAME', |
810 un_grp = un.add_mutually_exclusive_group(required=True) |
808 dest='name') |
811 un_grp.add_argument('-d', action='store_true', dest='delete', |
|
812 help=_("delete the user's name if any")) |
|
813 un_grp.add_argument('-n', help=_("a user's real name"), metavar='NAME', |
|
814 dest='name') |
809 un.set_defaults(func=user_name, scmd='username') |
815 un.set_defaults(func=user_name, scmd='username') |
810 |
816 |
811 uo = a('usernote', aliases=('uo',), |
817 uo = a('usernote', aliases=('uo',), |
812 help=_('set, update or delete the note of the given address'), |
818 help=_('set, update or delete the note of the given address'), |
813 epilog=_('With this subcommand, it is possible to attach a note to ' |
819 epilog=_('With this subcommand, it is possible to attach a note to ' |
814 'the specified account. Without the note argument, an ' |
820 'the specified account. In order to delete an existing note, ' |
815 'existing note is removed.')) |
821 'pass the -d option.')) |
816 uo.add_argument('address', |
822 uo.add_argument('address', |
817 help=_("an account's e-mail address (local-part@fqdn)")) |
823 help=_("an account's e-mail address (local-part@fqdn)")) |
818 uo.add_argument('-n', metavar='NOTE', dest='note', |
824 uo_grp = uo.add_mutually_exclusive_group(required=True) |
819 help=_('the note that should be set')) |
825 uo_grp.add_argument('-d', action='store_true', dest='delete', |
|
826 help=_('delete the note, if any')) |
|
827 uo_grp.add_argument('-n', metavar='NOTE', dest='note', |
|
828 help=_('the note that should be set')) |
820 uo.set_defaults(func=user_note, scmd='usernote') |
829 uo.set_defaults(func=user_note, scmd='usernote') |
821 |
830 |
822 up = a('userpassword', aliases=('up',), |
831 up = a('userpassword', aliases=('up',), |
823 help=_('update the password for the given address'), |
832 help=_('update the password for the given address'), |
824 epilog=fill(_("The password of an account can be updated with this " |
833 epilog=fill(_("The password of an account can be updated with this " |