(options, ftype)
| 143 | |
| 144 | |
| 145 | def ok_to_print(options, ftype): |
| 146 | if ftype is not None and options.missing: |
| 147 | return False |
| 148 | if options.types: |
| 149 | t = [s.strip() for s in options.types.split(',')] |
| 150 | if ftype not in t: |
| 151 | return False |
| 152 | return True |
| 153 | |
| 154 | |
| 155 | parser = argparse.ArgumentParser( |