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

@ -59,8 +59,8 @@ using from a shell.
* CLEAR OPTIONS * CLEAR OPTIONS
The *clear* command removes all labels from messages that match some query. As The *clear* command removes all labels from messages that match some query. As
with *update*, the must be recognized as a single parameter, i.e., quote it when with *update*, the query must be recognized as a single parameter, i.e., quote it
using from a shell. when using a shell.
** --dry-run ** --dry-run

View File

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