()
| 66 | |
| 67 | args = None |
| 68 | def parse_args(): |
| 69 | global args |
| 70 | parser = argparse.ArgumentParser() |
| 71 | parser.add_argument('-i', '--input', type=str, action='append', |
| 72 | help='Headers or directories to check (directories ' |
| 73 | 'are scanned for headers recursively); default: ' + |
| 74 | ','.join(DEFAULT_INPUT)) |
| 75 | parser.add_argument('-x', '--exclude', type=str, action='append', |
| 76 | help='Add an exclude pattern (regex)') |
| 77 | parser.add_argument('-v', '--verbose', action='store_true', |
| 78 | help='Be verbose') |
| 79 | args = parser.parse_args() |
| 80 | args.exclude = (args.exclude or []) + AUTO_EXCLUDE_PATTERNS |
| 81 | args.exclude += ['^' + re.escape(x) + '$' for x in AUTO_EXCLUDE] |
| 82 | if not args.input: |
| 83 | args.input=DEFAULT_INPUT |
| 84 | |
| 85 | |
| 86 | def printv(line): |
no test coverage detected
searching dependent graphs…