Support for --version.

pull/7/head
Ferry Boender 10 years ago
parent bff1eab3eb
commit 117438375e
  1. 2
      doc/MANUAL.md
  2. 2
      src/scriptform.py

@ -1,5 +1,7 @@
# Scriptform Manual # Scriptform Manual
This is the manual for version %%VERSION%%.
## Table of Contents ## Table of Contents
1. [Invocations](#invocations) 1. [Invocations](#invocations)

@ -956,7 +956,7 @@ if __name__ == "__main__":
sys.argv[0] + " [option] (--start|--stop) <form_definition.json>", sys.argv[0] + " [option] (--start|--stop) <form_definition.json>",
" " + sys.argv[0] + " --generate-pw", " " + sys.argv[0] + " --generate-pw",
] ]
parser = optparse.OptionParser() parser = optparse.OptionParser(version="%%VERSION%%")
parser.set_usage('\n'.join(usage)) parser.set_usage('\n'.join(usage))
parser.add_option("-g", "--generate-pw", dest="generate_pw", action="store_true", default=False, help="Generate password") parser.add_option("-g", "--generate-pw", dest="generate_pw", action="store_true", default=False, help="Generate password")

Loading…
Cancel
Save