More option argument completions
Added handlers for: --output-format --close-acct --open-acct --debug Added --drop to blocking list
This commit is contained in:
parent
fc89340c93
commit
689ad83668
@ -217,8 +217,19 @@ _hledger_compreply_optarg() {
|
||||
wordlist="auto always yes never no"
|
||||
_hledger_compreply "$(compgen -W "$wordlist" -- "$cur")"
|
||||
;;
|
||||
-O|--output-format)
|
||||
wordlist="txt csv json sql"
|
||||
_hledger_compreply "$(compgen -W "$wordlist" -- "$cur")"
|
||||
;;
|
||||
--close-acct|--open-acct)
|
||||
compopt -o nospace
|
||||
_hledger_compreply "$(_hledger_compgen "$(_hledger accounts --flat)")"
|
||||
;;
|
||||
--debug)
|
||||
_hledger_compreply "$(compgen -W "{1..9}" -- "$cur")"
|
||||
;;
|
||||
# Argument required, but no handler (yet)
|
||||
-b|--begin|-e|--end|-p|--period|--depth)
|
||||
-b|--begin|-e|--end|-p|--period|--depth|--drop)
|
||||
_hledger_compreply ""
|
||||
;;
|
||||
=)
|
||||
|
||||
@ -217,8 +217,19 @@ _hledger_compreply_optarg() {
|
||||
wordlist="auto always yes never no"
|
||||
_hledger_compreply "$(compgen -W "$wordlist" -- "$cur")"
|
||||
;;
|
||||
-O|--output-format)
|
||||
wordlist="txt csv json sql"
|
||||
_hledger_compreply "$(compgen -W "$wordlist" -- "$cur")"
|
||||
;;
|
||||
--close-acct|--open-acct)
|
||||
compopt -o nospace
|
||||
_hledger_compreply "$(_hledger_compgen "$(_hledger accounts --flat)")"
|
||||
;;
|
||||
--debug)
|
||||
_hledger_compreply "$(compgen -W "{1..9}" -- "$cur")"
|
||||
;;
|
||||
# Argument required, but no handler (yet)
|
||||
-b|--begin|-e|--end|-p|--period|--depth)
|
||||
-b|--begin|-e|--end|-p|--period|--depth|--drop)
|
||||
_hledger_compreply ""
|
||||
;;
|
||||
=)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user