Without editing options, listing is implied

This commit is contained in:
Bob Polis 2024-07-24 12:02:54 +02:00
parent 7445bf1b6b
commit cb8f1abca7
2 changed files with 8 additions and 4 deletions

View File

@ -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';
}
}

View File

@ -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