MCPcopy Index your code
hub / github.com/python/cpython / process_args

Function process_args

Tools/c-analyzer/c_common/scriptutil.py:194–200  ·  view source on GitHub ↗
(args, *, argv=None)

Source from the content-addressed store, hash-verified

192 parser.add_argument('-v', '--verbose', action='count', default=0)
193
194 def process_args(args, *, argv=None):
195 ns = vars(args)
196 key = 'verbosity'
197 if key in ns:
198 parser.error(f'duplicate arg {key!r}')
199 ns[key] = max(0, VERBOSITY + ns.pop('verbose') - ns.pop('quiet'))
200 return key
201 return process_args
202
203

Callers 1

process_args_by_keyFunction · 0.70

Calls 15

traceback_cmFunction · 0.85
_parse_filesFunction · 0.85
normalize_selectionFunction · 0.85
setFunction · 0.85
_flatten_processorsFunction · 0.85
errorMethod · 0.45
popMethod · 0.45
splitMethod · 0.45
appendMethod · 0.45
getMethod · 0.45
joinMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…