mu-label: no counts in list unless verbose

This commit is contained in:
Dirk-Jan C. Binnema
2025-09-01 08:15:51 +03:00
committed by Seth Ladygo
parent c16e7acb51
commit 5ba4791add
2 changed files with 6 additions and 3 deletions

View File

@ -118,7 +118,10 @@ label_list(const Mu::Store& store, const Options& opts)
const auto label_map{store.label_map()};
for (const auto& [label, n]: label_map)
mu_println("{}: {}", label, n);
if (opts.verbose)
mu_println("{}: {}", label, n);
else
mu_println("{}", label);
return Ok();
}