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

Function add_progress_cli

Tools/c-analyzer/c_common/scriptutil.py:320–333  ·  view source on GitHub ↗
(parser, *, threshold=VERBOSITY, **kwargs)

Source from the content-addressed store, hash-verified

318
319
320def add_progress_cli(parser, *, threshold=VERBOSITY, **kwargs):
321 parser.add_argument('--progress', dest='track_progress', action='store_const', const=True)
322 parser.add_argument('--no-progress', dest='track_progress', action='store_false')
323 parser.set_defaults(track_progress=True)
324
325 def process_args(args, *, argv=None):
326 if args.track_progress:
327 ns = vars(args)
328 verbosity = ns.get('verbosity', VERBOSITY)
329 if verbosity <= threshold:
330 args.track_progress = track_progress_compact
331 else:
332 args.track_progress = track_progress_flat
333 return process_args
334
335
336def add_failure_filtering_cli(parser, pool, *, default=False):

Callers 4

_cli_checkFunction · 0.90
_cli_analyzeFunction · 0.90
_cli_dataFunction · 0.90
_cli_capiFunction · 0.90

Calls 2

add_argumentMethod · 0.45
set_defaultsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…