From ba210bd08e3424bea105acac7ec33190a4df7764 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Wed, 19 Jul 2023 22:47:38 +0200 Subject: [PATCH] Use action='extend' for all multi-argument cli flags (#6200) --- redbot/core/_cli.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/redbot/core/_cli.py b/redbot/core/_cli.py index 169f2eb79..bc263713f 100644 --- a/redbot/core/_cli.py +++ b/redbot/core/_cli.py @@ -177,6 +177,7 @@ def parse_cli_flags(args): type=int, default=[], nargs="+", + action="extend", help="ID of a co-owner. Only people who have access " "to the system that is hosting Red should be " "co-owners, as this gives them complete access " @@ -201,11 +202,16 @@ def parse_cli_flags(args): "--load-cogs", type=str, nargs="+", + action="extend", help="Force loading specified cogs from the installed packages. " "Can be used with the --no-cogs flag to load these cogs exclusively.", ) parser.add_argument( - "--unload-cogs", type=str, nargs="+", help="Force unloading specified cogs." + "--unload-cogs", + type=str, + nargs="+", + action="extend", + help="Force unloading specified cogs.", ) parser.add_argument( "--dry-run",