summaryrefslogtreecommitdiff
path: root/completions/tracepath
diff options
context:
space:
mode:
Diffstat (limited to 'completions/tracepath')
-rw-r--r--completions/tracepath5
1 files changed, 3 insertions, 2 deletions
diff --git a/completions/tracepath b/completions/tracepath
index bd2f3ea3..29dec3e8 100644
--- a/completions/tracepath
+++ b/completions/tracepath
@@ -6,13 +6,14 @@ _tracepath()
_init_completion || return
case $prev in
- -l)
+ -*[lmp])
return
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
+ local opts=$(_parse_help "$1")
+ COMPREPLY=( $(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur") )
return
fi