(parser, *, threshold=VERBOSITY, **kwargs)
| 318 | |
| 319 | |
| 320 | def 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 | |
| 336 | def add_failure_filtering_cli(parser, pool, *, default=False): |
no test coverage detected
searching dependent graphs…