From: Michael Tremer Date: Fri, 5 Dec 2025 16:00:08 +0000 (+0000) Subject: dnsbl: Align the naming of the "list-create" command X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=267333d3e138741a0715b47889b18afb0857b407;p=dbl.git dnsbl: Align the naming of the "list-create" command Signed-off-by: Michael Tremer --- diff --git a/src/scripts/dnsbl.in b/src/scripts/dnsbl.in index 7b6a214..eda4423 100644 --- a/src/scripts/dnsbl.in +++ b/src/scripts/dnsbl.in @@ -46,15 +46,15 @@ class CLI(object): # Show Version parser.add_argument("--version", action="version", version="%(prog)s @VERSION@") - # create-list - create_list = subparsers.add_parser("create-list", help=_("Create a new list")) - create_list.add_argument("--name", required=True, + # list-create + list_create = subparsers.add_parser("list-create", help=_("Create a new list")) + list_create.add_argument("--name", required=True, help=_("The name of the list")) - create_list.add_argument("--created-by", required=True, + list_create.add_argument("--created-by", required=True, default=os.environ.get("USER"), help=_("The creator of the list")) - create_list.add_argument("--license", required=True, + list_create.add_argument("--license", required=True, help=_("The license of the list")) - create_list.set_defaults(func=self.__create_list) + list_create.set_defaults(func=self.__list_create) # list-add-source list_add_source = subparsers.add_parser("list-add-source", @@ -109,7 +109,7 @@ class CLI(object): # Otherwise just exit sys.exit(0) - def __create_list(self, backend, args): + def __list_create(self, backend, args): """ Creates a new list """