mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
[Core] Add --unload-cogs cli flag. (#5802)
* [Core] Add `--unload-cogs` cli. * Fixed error + Reformat. * At @Jack1142's request, the `packages` local variable is no longer a list, but a dictionary with `None` values, to avoid duplication. * Update redbot/core/bot.py Co-authored-by: Jakub Kuczys <6032823+jack1142@users.noreply.github.com> * Update redbot/core/bot.py Co-authored-by: Jakub Kuczys <6032823+jack1142@users.noreply.github.com> * Update bot.py * Update bot.py Co-authored-by: Jakub Kuczys <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -185,6 +185,9 @@ def parse_cli_flags(args):
|
||||
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."
|
||||
)
|
||||
parser.add_argument(
|
||||
"--dry-run",
|
||||
action="store_true",
|
||||
|
||||
Reference in New Issue
Block a user