Commit b104a5f9 authored by Jeremy C. Reed's avatar Jeremy C. Reed

Fix bug where --version required following argument.

Also while here sort the options.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2703 e5f2f494-b856-4b98-b285-d166d9295462
parent 6881e348
......@@ -69,8 +69,8 @@ def usage():
def main():
filename = DEFAULT_FILE
try:
opts, args = getopt.getopt(sys.argv[1:], 'hvf:',
['help', 'file=', 'version='])
opts, args = getopt.getopt(sys.argv[1:], 'f:hv',
['file=', 'help', 'version'])
except getopt.GetoptError as err:
print(err)
usage()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment