From 1db66124e9eaa7fc636d69f399e8c9c4fcdf8428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 15 May 2011 15:18:55 +0300 Subject: [PATCH] rpcdebug: Use _parse_usage. --- completions/rpcdebug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/completions/rpcdebug b/completions/rpcdebug index facc8517..ef9eabf1 100644 --- a/completions/rpcdebug +++ b/completions/rpcdebug @@ -40,7 +40,8 @@ _rpcdebug() esac if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '-v -h -m -s -c' -- "$cur" ) ) + COMPREPLY=( $( compgen -W '$( _parse_usage "$1" -h ) -s -c' \ + -- "$cur" ) ) fi } && complete -F _rpcdebug rpcdebug