main: use pager for --dump-configuration-items (#3894)
author0xAX <0xAX@users.noreply.github.com>
Thu, 4 Aug 2016 20:52:24 +0000 (23:52 +0300)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Aug 2016 20:52:24 +0000 (22:52 +0200)
src/core/main.c

index 094bbef..02324d3 100644 (file)
@@ -1614,6 +1614,7 @@ int main(int argc, char *argv[]) {
                 retval = version();
                 goto finish;
         } else if (arg_action == ACTION_DUMP_CONFIGURATION_ITEMS) {
+                pager_open(arg_no_pager, false);
                 unit_dump_config_items(stdout);
                 retval = EXIT_SUCCESS;
                 goto finish;