[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:
retke
2018-05-07 07:01:44 +02:00
committed by Tobotimus
parent f71aa9dd21
commit f6d27a0f43
2 changed files with 16 additions and 3 deletions

View File

@@ -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