From b6285ffa5d18cf0b84812242c2bf1087de9b897d Mon Sep 17 00:00:00 2001 From: mb300sd Date: Sun, 10 May 2020 04:03:32 -0400 Subject: [PATCH] Fix bash completion. At some point lightning-cli help defaulted to human readable format, the additional -H broke the bash completion. Changelog-Fixed: bash completion on lightning-cli now works again --- contrib/lightning-cli.bash-completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lightning-cli.bash-completion b/contrib/lightning-cli.bash-completion index 9c705d0d9117..23c58c97b808 100644 --- a/contrib/lightning-cli.bash-completion +++ b/contrib/lightning-cli.bash-completion @@ -31,7 +31,7 @@ _lightning_cli() { # get the regular commands if [[ -z "$cur" || "$cur" =~ ^[a-z] ]]; then - helpopts=$($lightning_cli -H help 2>/dev/null | sed -n 's/^\([a-z][a-z_-]*\).*/\1/p' | sed '$ d') + helpopts=$($lightning_cli help 2>/dev/null | sed -n 's/^\([a-z][a-z_-]*\).*/\1/p' | sed '$ d') fi COMPREPLY=( $( compgen -W "$helpopts $globalcmds" -X "*," -- "$cur" ) )