Lines Matching refs:shortopts
56 def getopt(args, shortopts, longopts = []): argument
95 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
99 def gnu_getopt(args, shortopts, longopts = []): argument
122 if shortopts.startswith('+'):
123 shortopts = shortopts[1:]
138 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
192 def do_shorts(opts, optstring, shortopts, args): argument
195 if short_has_arg(opt, shortopts):
207 def short_has_arg(opt, shortopts): argument
208 for i in range(len(shortopts)):
209 if opt == shortopts[i] != ':':
210 return shortopts.startswith(':', i+1)