mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-25 19:31:44 +03:00
;tests: fix some func tests broken by c6da152e
This commit is contained in:
parent
0b734be445
commit
4026e08797
@ -4,23 +4,23 @@
|
|||||||
# they always run the first hledger executable in PATH
|
# they always run the first hledger executable in PATH
|
||||||
|
|
||||||
# 1. flags after an add-command are handled by the add-on
|
# 1. flags after an add-command are handled by the add-on
|
||||||
$ PATH=$PATH:. hledger addon --help
|
$ PATH=$PATH:. hledger addon --help
|
||||||
> /hledger-addon/
|
> /hledger-addon/
|
||||||
>=0
|
>=0
|
||||||
|
|
||||||
# 2. add-on flags which are not also defined in the main executable are a problem
|
# 2. add-on flags which are not also defined in the main executable are a problem
|
||||||
$ PATH=$PATH:. hledger addon --addonflag
|
$ PATH=$PATH:. hledger addon --addonflag
|
||||||
>2 /Unknown flag: --addonflag/
|
>2 /Unknown flag: --addonflag/
|
||||||
>=1
|
>=1
|
||||||
|
|
||||||
# 3. hledger main executable ignores anything after -- (and hides the -- from the add-on)
|
# 3. hledger main executable ignores anything after -- (and hides the -- from the add-on)
|
||||||
$ PATH=$PATH:. hledger addon --help -- --addonflag
|
$ PATH=$PATH:. hledger addon --help -- --addonflag
|
||||||
> /hledger-addon/
|
> /hledger-addon/
|
||||||
>=0
|
>=0
|
||||||
|
|
||||||
# TODO how to reliably ensure no addons but still find the hledger executable ?
|
# TODO how to reliably ensure no addons but still find the hledger executable ?
|
||||||
# 4. having no addons shouldn't break the commands list
|
# 4. having no addons shouldn't break the commands list
|
||||||
# $ PATH= ~/.local/bin/stack exec -- hledger
|
# $ PATH= ~/.local/bin/stack exec -- hledger
|
||||||
# >=0
|
# >=0
|
||||||
|
|
||||||
# ############################ issue 457 #####################################
|
# ############################ issue 457 #####################################
|
||||||
|
Loading…
Reference in New Issue
Block a user