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 e9de31e..7b9be3b 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"