Use action='extend' for all multi-argument cli flags (#6200)

This commit is contained in:
Jakub Kuczys 2023-07-19 22:47:38 +02:00 committed by GitHub
parent d8e584b5e8
commit ba210bd08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,6 +177,7 @@ def parse_cli_flags(args):
type=int, type=int,
default=[], default=[],
nargs="+", nargs="+",
action="extend",
help="ID of a co-owner. Only people who have access " help="ID of a co-owner. Only people who have access "
"to the system that is hosting Red should be " "to the system that is hosting Red should be "
"co-owners, as this gives them complete access " "co-owners, as this gives them complete access "
@ -201,11 +202,16 @@ def parse_cli_flags(args):
"--load-cogs", "--load-cogs",
type=str, type=str,
nargs="+", nargs="+",
action="extend",
help="Force loading specified cogs from the installed packages. " help="Force loading specified cogs from the installed packages. "
"Can be used with the --no-cogs flag to load these cogs exclusively.", "Can be used with the --no-cogs flag to load these cogs exclusively.",
) )
parser.add_argument( 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( parser.add_argument(
"--dry-run", "--dry-run",