Lines Matching refs:opts
52 """getopt(args, options[, long_options]) -> opts, args
78 opts = []
88 opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
90 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
92 return opts, args
95 """getopt(args, options[, long_options]) -> opts, args
109 opts = []
131 opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
133 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
142 return opts, prog_args
144 def do_longs(opts, opt, longopts, args):
160 opts.append(('--' + opt, optarg or ''))
161 return opts, args
187 def do_shorts(opts, optstring, shortopts, args):
199 opts.append(('-' + opt, optarg))
200 return opts, args