mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Guard parsing of CLI args in launcher, setup scripts (#2432)
Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
committed by
Toby Harradine
parent
174754f800
commit
cfd8ef6025
@@ -452,6 +452,7 @@ def main_menu():
|
||||
|
||||
|
||||
def main():
|
||||
args, flags_to_pass = parse_cli_args()
|
||||
if not PYTHON_OK:
|
||||
print(
|
||||
f"Python {'.'.join(map(str, MIN_PYTHON_VERSION))} is required to run Red, but you "
|
||||
@@ -478,8 +479,6 @@ def main():
|
||||
run_red(args.instancename, autorestart=args.auto_restart, cliflags=flags_to_pass)
|
||||
|
||||
|
||||
args, flags_to_pass = parse_cli_args()
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user