From da26e6f744f42bf8418c9de5dce3db0ec6545eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 18 Aug 2026 12:27:21 +0200 Subject: [PATCH] run0: add --no-pager Since run0 --help now goes through the pager, provide a way to turn that off from the command line, like all other commands that page --help. The option is documented the same way as for systemd-run. --- man/run0.xml | 10 ++++++++++ src/run/run.c | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/man/run0.xml b/man/run0.xml index c2e891149f..1eb9905b57 100644 --- a/man/run0.xml +++ b/man/run0.xml @@ -373,6 +373,16 @@ + + + + + Do not pipe output into a pager. This currently only applies to + . (The pager is not started during normal operation.) + + + + All command line arguments after the first non-option argument become part of the command line of diff --git a/src/run/run.c b/src/run/run.c index 6b22f116b5..63994775a8 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -797,6 +797,10 @@ static int parse_argv_sudo_mode(int argc, char *argv[]) { arg_ask_password = false; break; + OPTION_COMMON_NO_PAGER: + arg_pager_flags |= PAGER_DISABLE; + break; + OPTION_LONG("machine", "CONTAINER", "Operate on local container"): r = parse_machine_argument(opts.arg, &arg_host, &arg_transport); if (r < 0)