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

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2025-07-11 19:01:42 +09:00
committed by Yu Watanabe
parent d137f280b8
commit 63770fa1d3
4 changed files with 24 additions and 1 deletions
+2 -1
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
+1
View File
@@ -47,6 +47,7 @@ _arguments \
'(-C --capsule)'{-C,--capsule=}'[Operate on capsule]:capsule' \
'--nice=[Nice level]:nice level' \
'--no-ask-password[Do not query the user for authentication]' \
'--no-pager[Do not spawn a pager]' \
'(--wait)--no-block[Do not synchronously wait for the unit start operation to finish]' \
'--on-active=[Run after SEC seconds]:SEC' \
'--on-boot=[Run SEC seconds after machine was booted up]:SEC' \