cli: more tests for add-on options pass-through

This commit is contained in:
Simon Michael 2014-04-27 23:33:30 -07:00
parent dbd35fbe3e
commit cfc1db1725

View File

@ -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