hledger/tests/addons/addons.test
2014-05-06 21:02:58 -07:00

18 lines
531 B
Plaintext

# "make test" sets up the dummy add-on scripts required for these tests
# 14. flags after an add-command are handled by the add-on
PATH=$PATH:. hledgerdev addon --help
>>> /hledger-addon/
>>>=0
# 15. add-on flags which are not also defined in the main executable are a problem
PATH=$PATH:. hledgerdev addon --addonflag
>>>2 /Unknown flag: --addonflag/
>>>=1
# 16. hledger main executable ignores anything after -- (and hides the -- from the add-on)
PATH=$PATH:. hledgerdev addon --help -- --addonflag
>>> /hledger-addon/
>>>=0