verbs: wrap abstract too

So far there's only one multi-line abstract. But as pointed out in the
review, it's silly to handle footer but not the abstract.

help_abstract() is not reused because it only works with one-line
abstracts. (It always prints an empty line to separate paragraphs.)
So the formatting is done anew in print_wrapped(). I think this is OK,
since it's all very simple. After everything has been converted to
COMMAND() and its helpers, help_abstract() and the sister functions will
become unused and can be dropped then.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-08-13 13:52:35 +02:00
parent 7ea090f41b
commit 94af9a8b40
2 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_set_nta, strv_freep);
COMMAND(
"resolvectl\0",
"Send control commands to the network name resolution manager, or\n"
"Send control commands to the network name resolution manager, or "
"resolve domain names, IPv4 and IPv6 addresses, DNS records, and services.",
.man_pages = "resolvectl.1\0",
.option_namespace = "resolvectl",