1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Exit codes for main function, fix GH-113

This commit is contained in:
krateng 2022-04-14 15:10:15 +02:00
parent 9d8752d052
commit bcb1d36b4a
2 changed files with 3 additions and 4 deletions

View File

@ -128,14 +128,13 @@ def main(*args,**kwargs):
if "version" in kwargs:
print(info.VERSION)
return True
else:
try:
action, *args = args
action = actions[action]
except (ValueError, KeyError):
print("Valid commands: " + " ".join(a for a in actions))
return
return False
return action(*args,**kwargs)
return True

View File

@ -21,7 +21,7 @@ classifiers = [
dependencies = [
"bottle>=0.12.16",
"waitress>=1.3",
"doreah>=1.9.0, <2",
"doreah>=1.9.1, <2",
"nimrodel>=0.8.0",
"setproctitle>=1.1.10",
#"pyvips>=2.1.16",