mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
bash-completion/analyze: show candidates for --debugger
This also adds missing completion for --debugger-arguments.
Follow-up for ad6e02e7b4.
This commit is contained in:
@@ -62,8 +62,9 @@ _systemd_analyze() {
|
||||
|
||||
local -A OPTS=(
|
||||
[STANDALONE]='-h --help --version --system --user --global --order --require --no-pager
|
||||
--man=no --generators=yes -q --quiet'
|
||||
[ARG]='-H --host -M --machine --fuzz --from-pattern --to-pattern --root --debugger'
|
||||
--man=no --generators=yes -q --quiet'
|
||||
[ARG]='-H --host -M --machine --fuzz --from-pattern --to-pattern --root --debugger
|
||||
-A --debugger-arguments'
|
||||
)
|
||||
|
||||
local -A VERBS=(
|
||||
@@ -116,6 +117,12 @@ _systemd_analyze() {
|
||||
--machine|-M)
|
||||
comps=$( __get_machines )
|
||||
;;
|
||||
--debugger)
|
||||
comps="gdb lldb"
|
||||
;;
|
||||
*)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user