shell_completion: Add -r option for coredumpctl

This commit is contained in:
Namhyung Kim 2017-02-14 23:08:46 +09:00
parent c1143c930f
commit 5badf05f39
2 changed files with 3 additions and 1 deletions

View file

@ -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'

View file

@ -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]' \