- exit with returned status code
boot.init_parser()
# Run command
-boot.run_command()
+status = boot.run_command()
# Shutdown again
boot.shutdown()
+
+# Exit with status code
+sys.exit(status)
# DEBUG: print("DEBUG: run_command(): CALLED!")
args = _PARSER.parse_args()
print(f"DEBUG: args[{type(args)}]={args}")
- args.command(args)
- # DEBUG: print("DEBUG: run_command(): EXIT!")
+ status = int(args.command(args))
+ # DEBUG: print("DEBUG: status={status} - EXIT!")
+ return status
def shutdown():
print("DEBUG: Closing database connection ...")