systemd-run: add --no-pager, use pager for --help
This commit is contained in:
committed by
Yu Watanabe
parent
d137f280b8
commit
63770fa1d3
@@ -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
|
||||
|
||||
@@ -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' \
|
||||
|
||||
Reference in New Issue
Block a user