Parcourir la source

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

Jeremy C. Reed il y a 14 ans
Parent
commit
b104a5f926
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/bin/usermgr/b10-cmdctl-usermgr.py.in

+ 2 - 2
src/bin/usermgr/b10-cmdctl-usermgr.py.in

@@ -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()