pamhyr: Fix execution without argument.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-10-10 09:36:45 +02:00
1 parent b35be16268
commit d0ea629c10
1 file changed
+2 -4
+2 -4
View File
@@ -72,8 +72,9 @@ def main():
legal_info()
if len(sys.argv) > 1:
# Run a script
script = sys.argv[1]
else:
script = "gui"
if script == "help":
ret = usage(sys.argv)
@@ -102,9 +103,6 @@ def main():
ret = application.run()
if ret != 0:
application.usage()
else:
# No args, run Pamhyr2 interface
ret = gui(app, conf)
display_timers()
sys.exit(ret)