Scripts: Fix return value.

mesh
Pierre-Antoine Rouby 2023-09-19 17:25:30 +02:00
parent 973e6c8080
commit 0d547cc469
2 changed files with 2 additions and 2 deletions

View File

@ -31,4 +31,4 @@ class ScriptHello(AScript):
def run(self):
logger.info("Hello from Pamhyr2 script !")
return True
return 0

View File

@ -90,7 +90,7 @@ def main():
application = scripts[script](app, conf, sys.argv)
ret = application.run()
if not ret:
if ret != 0:
application.usage()
else:
# No args, run Pamhyr2 interface