Commits

ryuslash committed 4ebabc9

Change optargs

* Alphabetize getopt arguments.
* Make `file' require an argument.

Comments (0)

Files changed (1)

dispass/dispass.py

         a_flag = None
 
         try:
-            opts, args = getopt.getopt(argv[1:], "f:hlVa:",
-                                       ["file", "help", "list",
-                                        "script", "version", "add="])
+            opts, args = getopt.getopt(argv[1:], "a:f:hlV",
+                                       ["add=", "file=", "help", "list",
+                                        "script", "version"])
         except getopt.GetoptError, err:
             print str(err), "\n"
             self.usage()