summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-15 16:25:28 +0100
committerLennart Poettering <lennart@poettering.net>2017-12-15 20:52:28 +0100
commit5625c18a4726254f1169adb7748c3d888d47d2bf (patch)
treec052c178e0afd740e6e85134b36fee324017f5b1 /src
parentb0d7c9899391c3a4476703fd3b0f578b9706bf1e (diff)
downloadsystemd-5625c18a4726254f1169adb7748c3d888d47d2bf.tar.gz
systemd-5625c18a4726254f1169adb7748c3d888d47d2bf.tar.bz2
systemd-5625c18a4726254f1169adb7748c3d888d47d2bf.zip
main: invoke pager_open() only at one place
Let's just move this up a few lines and unify the invocation.
Diffstat (limited to 'src')
-rw-r--r--src/core/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 29220a7231..2903936ca5 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -2305,7 +2305,7 @@ int main(int argc, char *argv[]) {
if (r < 0)
goto finish;
- if (IN_SET(arg_action, ACTION_TEST, ACTION_HELP))
+ if (IN_SET(arg_action, ACTION_TEST, ACTION_HELP, ACTION_DUMP_CONFIGURATION_ITEMS))
pager_open(arg_no_pager, false);
if (arg_action != ACTION_RUN)
@@ -2318,7 +2318,6 @@ 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;