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"]
56 def getopt(args, shortopts, longopts = []):
57 """getopt(args, options[, long_options]) -> opts, args
64 colon (i.e., the same format that Unix getopt() uses). If
100 """getopt(args, options[, long_options]) -> opts, args
102 This function works like getopt(), except that GNU style scanning
104 arguments may be intermixed. The getopt() function stops
215 print(getopt(sys.argv[1:], "a:b", ["alpha=", "beta"]))