mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
shell_completion: Add -r option for coredumpctl
This commit is contained in:
parent
c1143c930f
commit
5badf05f39
@ -37,7 +37,8 @@ __journal_fields=(MESSAGE{,_ID} PRIORITY CODE_{FILE,LINE,FUNC}
|
||||
_coredumpctl() {
|
||||
local i verb comps
|
||||
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
local OPTS='-h --help --version --no-pager --no-legend -o --output -F --field -1'
|
||||
local OPTS='-h --help --version --no-pager --no-legend -o --output -F --field -1
|
||||
-r --reverse'
|
||||
|
||||
local -A VERBS=(
|
||||
[LIST]='list'
|
||||
|
@ -32,6 +32,7 @@ _arguments \
|
||||
{-o+,--output=}'[Write output to FILE]:output file:_files' \
|
||||
{-F+,--field=}'[Show field in list output]:field' \
|
||||
'-1[Show information about most recent entry only]' \
|
||||
{-r,--reverse}'[Show the newest entries first]' \
|
||||
'--no-pager[Do not pipe output into a pager]' \
|
||||
'--no-legend[Do not print the column headers]' \
|
||||
{-h,--help}'[Show this help]' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user