mu-label: no counts in list unless verbose
This commit is contained in:
@ -59,8 +59,8 @@ using from a shell.
|
||||
* CLEAR OPTIONS
|
||||
|
||||
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
|
||||
using from a shell.
|
||||
with *update*, the query must be recognized as a single parameter, i.e., quote it
|
||||
when using a shell.
|
||||
|
||||
** --dry-run
|
||||
|
||||
|
||||
@ -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)
|
||||
if (opts.verbose)
|
||||
mu_println("{}: {}", label, n);
|
||||
else
|
||||
mu_println("{}", label);
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user