coredumpctl: Add --debugger-args= option

This commit adds the possibility to pass command line options to the
debugger invoked with coredumpctl debug.

Resolves: #9905
This commit is contained in:
Michal Fabik
2020-12-14 15:44:36 +01:00
committed by Yu Watanabe
parent a7c52e1ee1
commit a2be8be2cf
3 changed files with 77 additions and 38 deletions

View File

@@ -39,7 +39,8 @@ _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
-r --reverse -S --since -U --until -D --directory -q --quiet --debugger'
-r --reverse -S --since -U --until -D --directory -q --quiet --debugger
-A --debugger-arguments'
local -A VERBS=(
[LIST]='list info'