diff options
Diffstat (limited to 'etc/bash_completion.d')
-rwxr-xr-x | etc/bash_completion.d/vyatta-cfg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index 787a363..716e216 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -730,6 +730,9 @@ vyatta_config_complete () fi get_help_text vyatta_completions=( "${_get_help_text_items[@]}" ) + if [[ ${#vyatta_completions[@]} -eq 0 ]]; then + vyatta_help_text="\n\n Invalid command: [${COMP_WORDS[COMP_CWORD]}]" + fi vyatta_do_complete eval $restore_shopts return |