diff --git a/changelog.d/3174.bugfix.rst b/changelog.d/3174.bugfix.rst new file mode 100644 index 000000000..cd743eefe --- /dev/null +++ b/changelog.d/3174.bugfix.rst @@ -0,0 +1 @@ +``--owner`` and ``-p`` cli flags now work when added from launcher. diff --git a/redbot/launcher.py b/redbot/launcher.py index 481d2428b..0188d9da0 100644 --- a/redbot/launcher.py +++ b/redbot/launcher.py @@ -201,7 +201,12 @@ def cli_flag_getter(): choice = user_choice() if choice == "y": 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: print("Starting over") return cli_flag_getter()