Home | History | Annotate | Download | only in Lib

Lines Matching defs:getopt

4 sys.argv.  It supports the same conventions as the Unix getopt()

10 getopt() -- Parse command line options
11 gnu_getopt() -- Like getopt(), but allow option and non-option arguments
34 __all__ = ["GetoptError","error","getopt","gnu_getopt"]
51 def getopt(args, shortopts, longopts = []):
52 """getopt(args, options[, long_options]) -> opts, args
59 colon (i.e., the same format that Unix getopt() uses). If
95 """getopt(args, options[, long_options]) -> opts, args
97 This function works like getopt(), except that GNU style scanning
99 arguments may be intermixed. The getopt() function stops
210 print getopt(sys.argv[1:], "a:b", ["alpha=", "beta"])