mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -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:
@@ -371,6 +371,7 @@ async def remove_instance_interaction():
|
||||
|
||||
|
||||
def main():
|
||||
args, _ = parse_cli_args()
|
||||
if args.delete:
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(remove_instance_interaction())
|
||||
@@ -381,8 +382,6 @@ def main():
|
||||
basic_setup()
|
||||
|
||||
|
||||
args, _ = parse_cli_args()
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user