rpcdebug: Use _parse_usage.
This commit is contained in:
parent
78b9e0569e
commit
1db66124e9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user