Lines Matching defs:line
13 # We assume that first line is usage line like this:
17 # The second line is description of the command. Multiple lines
18 # are permitted. The blank line signals the end of this section.
40 # characters. The default value should be placed in separate line
43 line = infile.readline().strip()
44 m = re.match(r'^Usage: (.*)', line)
46 print('usage line is invalid. Expected following lines:')
56 for line in infile:
57 line = line.strip()
58 if not line:
60 description.append(line)
86 for line in infile:
87 line = line.rstrip()
89 if not line.strip() and in_arg:
92 if line.startswith(' ') and in_arg:
93 if not line.startswith(arg_indent):
95 print('{}'.format(format_arg_text(line[len(arg_indent):])))
102 if line == '--':
107 print(line.strip())
110 if line == 'Options:':
116 if line.startswith(' <'):
118 m = re.match(r'^(?:\s+)([a-zA-Z0-9-_<>]+)(.*)', line)
126 if line.startswith(' ('):
128 m = re.match(r'^(?:\s+)(\([a-zA-Z0-9-_<> ]+\))(.*)', line)
136 if line.startswith(' -'):
140 line)
150 if not line.startswith(' ') and line.endswith(':'):
152 subsec = line.strip()[:-1]
158 print(line.strip())