]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: use pager in help
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Sep 2023 14:45:22 +0000 (16:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Sep 2023 20:32:20 +0000 (22:32 +0200)
The output is more than one page, let's enable the pager.

src/boot/bootctl.c

index 1bc4aaf3babc2702347052dadce9bc7b84c9c3e3..168c843d1877ef0af3dc466a0c9558999bad1e23 100644 (file)
@@ -132,6 +132,8 @@ static int help(int argc, char *argv[], void *userdata) {
         _cleanup_free_ char *link = NULL;
         int r;
 
+        pager_open(arg_pager_flags);
+
         r = terminal_urlify_man("bootctl", "1", &link);
         if (r < 0)
                 return log_oom();