Main function.

pull/7/head
Ferry Boender 10 years ago
parent 450bb24eb7
commit 3442f34d1b
  1. 5
      src/scriptform.py

@ -1140,7 +1140,7 @@ class Daemon:
self.shutdown_cb()
if __name__ == "__main__":
def main(): # pragma: no cover
usage = [
sys.argv[0] + " [option] (--start|--stop) <form_definition.json>",
" " + sys.argv[0] + " --generate-pw",
@ -1208,3 +1208,6 @@ if __name__ == "__main__":
except Exception, e:
log.exception(e)
raise
if __name__ == "__main__": # pragma: no cover
main()

Loading…
Cancel
Save