summaryrefslogtreecommitdiff
path: root/mu
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2025-09-01 08:15:51 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2025-09-01 09:23:25 +0300
commit0303e665c3f5552ec79ee74ce192a6ab103ccd19 (patch)
treea79ed36b66d822efdfe0ff721597592790a92b9c /mu
parentc9537ab8914d33f77eb554b5806bbe08e2775118 (diff)
mu-label: no counts in list unless verbose
Diffstat (limited to 'mu')
-rw-r--r--mu/mu-cmd-label.cc5
1 files changed, 4 insertions, 1 deletions
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();
}