From cb8f1abca7d4a8e835d9db5b678f7708e9c37eec Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Wed, 24 Jul 2024 12:02:54 +0200 Subject: [PATCH] Without editing options, listing is implied --- src/main.cpp | 4 +--- tagger.1 | 8 +++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 54384dc..e2370ca 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -80,9 +80,7 @@ static void process(const char* path) { std::string joined {sc::join(tags, ",")}; throw_if_min1(setxattr(path, tagname, joined.c_str(), joined.size(), 0)); } else { - if (should_list) { - std::cout << path << ": " << sc::io::yellowf << sc::join(tags, ", ") << sc::io::reset << '\n'; - } + std::cout << path << ": " << sc::io::yellowf << sc::join(tags, ", ") << sc::io::reset << '\n'; } } diff --git a/tagger.1 b/tagger.1 index 06482f8..a34b865 100644 --- a/tagger.1 +++ b/tagger.1 @@ -1,4 +1,4 @@ -.Dd July 21, 2024 +.Dd July 24, 2024 .Dt tagger 1 .Os .Sh NAME @@ -49,6 +49,12 @@ If you also specify any (see below), .Nm reports tags before and after applying any changes. +.Pp +If you don't specify any +.Sx Editing Options +the +.Fl l +option is implied, and can be omitted. .El .Ss Editing Options .Bl -tag -width Ds