Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion redbot/core/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand All @@ -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",
Expand Down