Add a couple of sub-commands to the no-query list
This commit is contained in:
parent
3a20e91b69
commit
0361c81da2
@ -84,12 +84,15 @@ _hledger_completion_function() {
|
|||||||
|
|
||||||
# Subcommand specific
|
# Subcommand specific
|
||||||
case $subcommand in
|
case $subcommand in
|
||||||
files|test) return 0 ;;
|
|
||||||
help)
|
help)
|
||||||
compopt -o nosort +o filenames
|
compopt -o nosort +o filenames
|
||||||
_hledger_compreply "$(compgen -W "$(hledger help | tail -n 1)" -- "$cur")"
|
_hledger_compreply "$(compgen -W "$(hledger help | tail -n 1)" -- "$cur")"
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
# These do not expect or support any query arguments
|
||||||
|
commodities|check-dupes|files|import|print-unique|test)
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Offer query filters and accounts for the rest
|
# Offer query filters and accounts for the rest
|
||||||
|
|||||||
@ -84,12 +84,15 @@ _hledger_completion_function() {
|
|||||||
|
|
||||||
# Subcommand specific
|
# Subcommand specific
|
||||||
case $subcommand in
|
case $subcommand in
|
||||||
files|test) return 0 ;;
|
|
||||||
help)
|
help)
|
||||||
compopt -o nosort +o filenames
|
compopt -o nosort +o filenames
|
||||||
_hledger_compreply "$(compgen -W "$(hledger help | tail -n 1)" -- "$cur")"
|
_hledger_compreply "$(compgen -W "$(hledger help | tail -n 1)" -- "$cur")"
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
# These do not expect or support any query arguments
|
||||||
|
commodities|check-dupes|files|import|print-unique|test)
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Offer query filters and accounts for the rest
|
# Offer query filters and accounts for the rest
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user