mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Launcher] To make experience with launcher amazing /s (#3175)
* Update launcher.py * Create 3174.bugfix.rst * Revert launcher.py * Update launcher.py * Update launcher.py
This commit is contained in:
parent
d07e718ab8
commit
02d6b7d658
1
changelog.d/3174.bugfix.rst
Normal file
1
changelog.d/3174.bugfix.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
``--owner`` and ``-p`` cli flags now work when added from launcher.
|
||||||
@ -201,7 +201,12 @@ def cli_flag_getter():
|
|||||||
choice = user_choice()
|
choice = user_choice()
|
||||||
if choice == "y":
|
if choice == "y":
|
||||||
print("Done selecting cli flags")
|
print("Done selecting cli flags")
|
||||||
return flags
|
# this is safe only because arguments like prefix and owner id can't have spaces
|
||||||
|
cli_flags = []
|
||||||
|
for flag_with_spaces in flags:
|
||||||
|
for flag in flag_with_spaces.split():
|
||||||
|
cli_flags.append(flag)
|
||||||
|
return cli_flags
|
||||||
else:
|
else:
|
||||||
print("Starting over")
|
print("Starting over")
|
||||||
return cli_flag_getter()
|
return cli_flag_getter()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user