mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
cli: more tests for add-on options pass-through
This commit is contained in:
parent
dbd35fbe3e
commit
cfc1db1725
@ -131,8 +131,20 @@ hledgerdev register -f/dev/null --alias=somealiases --rules-file -? -h --help --
|
||||
>>> /^register \[OPTIONS\]/
|
||||
>>>=0
|
||||
|
||||
# 14. flags after and add-command are handled by the add-on
|
||||
# needs updating
|
||||
#hledgerdev accountnames.hs --help
|
||||
#>>> /^assets$/
|
||||
#>>>=0
|
||||
# do "make addons" to set up for these:
|
||||
|
||||
# 14. flags after an add-command are handled by the add-on
|
||||
hledgerdev addon --help
|
||||
>>> /args: --help/
|
||||
>>>=0
|
||||
|
||||
# 15. add-on flags which are not also defined in the main executable are a problem
|
||||
hledgerdev addon --addonflag
|
||||
>>>2 /Unknown flag: --addonflag/
|
||||
>>>=1
|
||||
|
||||
# 16. hledger main executable ignores anything after -- (and hides the -- from the add-on)
|
||||
hledgerdev addon --help -- --addonflag
|
||||
>>> /args: --help --addonflag/
|
||||
>>>=0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user