Add a couple of sub-commands to the no-query list

This commit is contained in:
Vladimir Zhelezov 2020-12-13 06:44:08 +01:00
parent 3a20e91b69
commit 0361c81da2
2 changed files with 8 additions and 2 deletions

View File

@ -84,12 +84,15 @@ _hledger_completion_function() {
# Subcommand specific
case $subcommand in
files|test) return 0 ;;
help)
compopt -o nosort +o filenames
_hledger_compreply "$(compgen -W "$(hledger help | tail -n 1)" -- "$cur")"
return 0
;;
# These do not expect or support any query arguments
commodities|check-dupes|files|import|print-unique|test)
return 0
;;
esac
# Offer query filters and accounts for the rest

View File

@ -84,12 +84,15 @@ _hledger_completion_function() {
# Subcommand specific
case $subcommand in
files|test) return 0 ;;
help)
compopt -o nosort +o filenames
_hledger_compreply "$(compgen -W "$(hledger help | tail -n 1)" -- "$cur")"
return 0
;;
# These do not expect or support any query arguments
commodities|check-dupes|files|import|print-unique|test)
return 0
;;
esac
# Offer query filters and accounts for the rest