]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: use pager for --help
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 May 2023 19:26:57 +0000 (21:26 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 May 2023 14:04:13 +0000 (16:04 +0200)
This output is already too long to fit on an normal terminal, and the
interesting parts are towards the top.

src/dissect/dissect.c

index 2d33a967ca86d548c858824d1f3fee2a0981ce59..45e0abc63d81cb85c6712619452ea030ce2b3916 100644 (file)
@@ -96,6 +96,8 @@ static int help(void) {
         _cleanup_free_ char *link = NULL;
         int r;
 
+        pager_open(arg_pager_flags);
+
         r = terminal_urlify_man("systemd-dissect", "1", &link);
         if (r < 0)
                 return log_oom();