Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
for t in tasks:
if t.duration >= minimum:
line = f"{t.duration} {t.recipe}:{t.task}"
- if t.duration >= highlight:
+ if args.highlight and t.duration >= highlight:
print(f"\033[1m{line}\033[0m")
else:
print(line)
type=int,
default=60,
metavar="SECS",
- help="Highlight tasks longer than SECS seconds",
+ help="Highlight tasks longer than SECS seconds (0 disabled)",
)
args = parser.parse_args(argv)