]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell_completion: Add -r option for coredumpctl 5346/head
authorNamhyung Kim <namhyung@gmail.com>
Tue, 14 Feb 2017 14:08:46 +0000 (23:08 +0900)
committerNamhyung Kim <namhyung@gmail.com>
Tue, 14 Feb 2017 14:27:16 +0000 (23:27 +0900)
shell-completion/bash/coredumpctl
shell-completion/zsh/_coredumpctl

index 60916775068fe5cd0e36f18c9cd0405c8d1ff03a..d34f89e2bb9cc3f56891c75f338578da46000926 100644 (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'
index e4c04a697fa639b0ed59130a91357de86088d3b5..64b44c1214cd40263881644dd04a21a9295c41d6 100644 (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]' \