diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2025-09-01 08:15:51 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2025-09-01 09:23:25 +0300 |
| commit | 0303e665c3f5552ec79ee74ce192a6ab103ccd19 (patch) | |
| tree | a79ed36b66d822efdfe0ff721597592790a92b9c | |
| parent | c9537ab8914d33f77eb554b5806bbe08e2775118 (diff) | |
mu-label: no counts in list unless verbose
| -rw-r--r-- | man/mu-label.1.org | 4 | ||||
| -rw-r--r-- | mu/mu-cmd-label.cc | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/man/mu-label.1.org b/man/mu-label.1.org index 9c3cdcb..acdaff8 100644 --- a/man/mu-label.1.org +++ b/man/mu-label.1.org @@ -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 diff --git a/mu/mu-cmd-label.cc b/mu/mu-cmd-label.cc index 0b7e3bc..f0df1d1 100644 --- a/mu/mu-cmd-label.cc +++ b/mu/mu-cmd-label.cc @@ -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(); } |
