Lines Matching refs:lines
344 # helper for wrapping lines
346 lines = []
354 lines.append(indent + ' '.join(line))
360 lines.append(indent + ' '.join(line))
362 lines[0] = lines[0][len(indent):]
363 return lines
369 lines = get_lines([prog] + opt_parts, indent, prefix)
370 lines.extend(get_lines(pos_parts, indent))
372 lines = get_lines([prog] + pos_parts, indent, prefix)
374 lines = [prog]
380 lines = get_lines(parts, indent)
381 if len(lines) > 1:
382 lines = []
383 lines.extend(get_lines(opt_parts, indent))
384 lines.extend(get_lines(pos_parts, indent))
385 lines = [prog] + lines
387 # join lines into usage
388 usage = '\n'.join(lines)
541 # if there was help for the action, add lines of help text