mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-23 03:08:01 -05:00
[V3 Parser] Added --load-cogs flag (#1601)
* [V3 Parser] Added --load-cogs flag * Removed old PR data * Removed old PR data * Removed old PR data * Slightly reword help for flag * Stick to convention for checking if sequence is empty * Fix some logic errors * Don't print packages which failed to load
This commit is contained in:
@@ -89,6 +89,9 @@ def parse_cli_flags(args):
|
||||
parser.add_argument("--no-cogs",
|
||||
action="store_true",
|
||||
help="Starts Red with no cogs loaded, only core")
|
||||
parser.add_argument("--load-cogs", type=str, nargs="*",
|
||||
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("--self-bot",
|
||||
action='store_true',
|
||||
help="Specifies if Red should log in as selfbot")
|
||||
@@ -126,3 +129,4 @@ def parse_cli_flags(args):
|
||||
args.prefix = []
|
||||
|
||||
return args
|
||||
|
||||
|
||||
Reference in New Issue
Block a user