systemd-run: add --no-pager, use pager for --help

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2025-07-10 11:30:01 +02:00
committed by Yu Watanabe
parent d137f280b8
commit 63770fa1d3
4 changed files with 24 additions and 1 deletions

View File

@@ -40,7 +40,8 @@ _systemd_run() {
--path-property --socket-property --timer-property -H --host -M --machine --expand-environment
--background --json --job-mode
)
local OPTS="${opts_with_values[*]} --no-ask-password --scope -u --slice-inherit -r --remain-after-exit
local OPTS="${opts_with_values[*]} --no-ask-password --no-pager
--scope -u --slice-inherit -r --remain-after-exit
--send-sighup -d --same-dir -t --pty -P --pipe -S --shell -q --quiet --ignore-failure
--on-clock-change --on-timezone-change --no-block --wait -G --collect --user --system -h --help --version -v --verbose"
local mode=--system