Lines Matching refs:short
5 * short and long options are tied together
32 * short and long options are tied together
78 # but expands short options, converts aliases, etc.
145 long, short, help = option
148 long, short, help, repeat = option
159 if (not ((short is None) or
160 (isinstance(short, str) and len(short) == 1))):
161 raise DistutilsGetoptError("invalid short option '%s': "
162 "must a single character or None" % short)
168 if short: short = short + ':'
206 if short:
207 self.short_opts.append(short)
208 self.short2long[short[0]] = long
238 if len(opt) == 2 and opt[0] == '-': # it's a short option
292 short = option[1]
296 if short is not None:
297 l = l + 5 # " (-x)" where short == 'x'
310 # Options with short names will have the short name shown (but
313 # If adding the short option would make the left column too wide,
321 # - 5 characters (incl. space) for short option name
334 long, short, help = option[:3]
339 # Case 1: no short option at all (makes life easy)
340 if short is None:
346 # Case 2: we have a short option, so we have to include it
349 opt_names = "%s (-%s)" % (long, short)