MCPcopy Index your code
hub / github.com/nodejs/node / parse_args

Function parse_args

deps/v8/tools/generate-header-include-checks.py:68–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67args = None
68def 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
86def printv(line):

Callers 1

mainFunction · 0.70

Calls 4

add_argumentMethod · 0.45
joinMethod · 0.45
parse_argsMethod · 0.45
escapeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…