]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machinectl: enable pager on help (#4313)
author0xAX <0xAX@users.noreply.github.com>
Sat, 8 Oct 2016 21:49:33 +0000 (00:49 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 8 Oct 2016 21:49:33 +0000 (17:49 -0400)
as its output is fairly long.

src/machine/machinectl.c

index e9de31e1845d9c54d2e05d4e40e2d7ca78213e1f..7b9be3b425820a2628eaf177a0ae6126f1844311 100644 (file)
@@ -2629,6 +2629,7 @@ static int clean_images(int argc, char *argv[], void *userdata) {
 }
 
 static int help(int argc, char *argv[], void *userdata) {
+        pager_open(arg_no_pager, false);
 
         printf("%s [OPTIONS...] {COMMAND} ...\n\n"
                "Send control commands to or query the virtual machine and container\n"