def set_info_options(parser):
    set_formatter(parser)
    if os.name == 'posix':
        try:
            import matplotlib
            matplotlib.use('GTkAgg')
            parser.run_methods = ['subcommand']
        except __HOLE__:
            pass
    parser.set_usage ('%prog [options] -i INPUTPATH')
    parser.set_description('Show INPUTPATHs information.')
    parser.add_option ('--input-path', '-i',
                       type = 'file' if have_wx else str, metavar='INPUTPATH',
                       help = 'Specify INPUTPATH.'
                       )
    parser.add_option ('--memory-usage',
                       action = 'store_true', default=False,
                       help = 'Show TIFF file memory usage.'
                       )
    parser.add_option ('--no-memory-usage', dest='memory_usage',
                       action = 'store_false',
                       help = 'See --memory-usage.'
                       )
    parser.add_option ('--ifd',
                       action = 'store_true', default=False,
                       help = 'Show all TIFF file image file directory. By default, only the first IFD is shown.'
                       )
    parser.add_option ('--no-ifd', dest='ifd',
                       action = 'store_false', help='See --ifd.')
 
    parser.add_option ('--human',
                       action = 'store_true', default=False,
                       help = 'Show human readable values'
                       )
    parser.add_option ('--no-human', dest='human',
                       action = 'store_false', help='See --human.')
dataset/ETHPy150Open pearu/pylibtiff/libtiff/script_options.py/set_info_options