mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
Merge pull request #5346 from namhyung/coredump-reverse
Update for coredumpctl -r option
This commit is contained in:
commit
fb4819f137
@ -91,6 +91,14 @@
|
||||
all known core dumps.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-r</option></term>
|
||||
<term><option>--reverse</option></term>
|
||||
|
||||
<listitem><para>Reverse output so that the newest entries are displayed first.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-F</option> <replaceable>FIELD</replaceable></term>
|
||||
<term><option>--field=</option><replaceable>FIELD</replaceable></term>
|
||||
|
@ -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