Add enter-to-exit prompt when EXE console is missing args

This commit is contained in:
Etoh 2023-09-17 15:21:52 +01:00 committed by GitHub
parent cf3d17edbb
commit e21cd2604f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -412,6 +412,8 @@ class ConfigurationGetter(object):
if error:
print("{}!".format(error))
print(getMessage("missing-arguments-error"))
if utils.isWindowsConsole():
input(getMessage("enter-to-exit-prompt"))
sys.exit()
else:
from syncplay.ui.GuiConfiguration import GuiConfiguration