MCPcopy Create free account
hub / github.com/Kitware/VTK / ProgramOptions

Function ProgramOptions

Common/Core/Testing/Python/TestEmptyInput.py:461–485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

459 print('-' * 40)
460
461def ProgramOptions():
462 desc = """
463 %prog Tests each VTK class for empty input using various data structures.
464 """
465 parser = optparse.OptionParser(description=desc)
466 parser.set_defaults(verbose=False)
467
468 parser.add_option('-c', '--classnames',
469 help='The name of the class or a list of classes in quotes separated by commas.',
470 type='string',
471 dest='classnames',
472 default=None,
473 action='store')
474 parser.add_option('-q', '--quiet',
475 help='Do not print status messages to stdout (default)',
476 dest='verbose',
477 action="store_false")
478 parser.add_option('-v', '--verbose',
479 help='Print status messages to stdout',
480 dest='verbose',
481 action="store_true")
482
483 (opts, args) = parser.parse_args()
484
485 return (True, opts)
486
487def main(argv=None):
488 global classExceptions

Callers 1

mainFunction · 0.70

Calls 1

add_optionMethod · 0.45

Tested by

no test coverage detected