Lines Matching defs:Output
35 Run the program, parse the output, and then format that into a man
76 gflags.DEFINE_integer('v', 0, 'verbosity level to use for output')
179 self.output = [] # output from the program. List of lines.
186 """Run it and collect output.
201 # --help output is often routed to stderr, so we combine with stdout.
207 self.output = child_stdout_and_stderr.readlines()
209 if len(self.output) < _MIN_VALID_USAGE_MSG:
212 len(self.output), self.output))
217 """Parse program output."""
243 for start_line in range(start_line, len(self.output)): # collect top description
244 line = self.output[start_line].rstrip()
247 and len(self.output) > start_line+1
248 and '' == self.output[start_line+1].rstrip()):
279 for line_num in range(start_line, len(self.output)): # collect flags
280 line = self.output[line_num].rstrip()
328 for line_num in range(start_line, len(self.output)): # collect flags
329 line = self.output[line_num].rstrip()
374 for line_num in range(start_line, len(self.output)): # collect flags
375 line = self.output[line_num].rstrip()
435 """Base class to output flags information."""
441 directory Directory to write output into
446 def Output(self):
447 """Output all sections of the page."""
460 """Output a man page."""
466 directory Directory to write output into
520 self.fp.write('Gflags2man created this page from "%s %s" output.\n'
540 doc.Output()