Home | History | Annotate | Download | only in python2.7

Lines Matching full:opts

305         opts = self.option_strings[option]
307 if len(opts) > opt_width:
308 opts = "%*s%s\n" % (self.current_indent, "", opts)
310 else: # start help on same line as opts
311 opts = "%*s%-*s " % (self.current_indent, "", opt_width, opts)
313 result.append(opts)
320 elif opts[-1] != "\n":
355 opts = short_opts + long_opts
357 opts = long_opts + short_opts
359 return ", ".join(opts)
560 def __init__(self, *opts, **attrs):
561 # Set _short_opts, _long_opts attrs from 'opts' tuple.
565 opts = self._check_opt_strings(opts)
566 self._set_opt_strings(opts)
579 def _check_opt_strings(self, opts):
583 opts = filter(None, opts)
584 if not opts:
586 return opts
588 def _set_opt_strings(self, opts):
589 for opt in opts: