mu-label: no counts in list unless verbose
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user