ulrikstrid / reenv

dotenv-cli implementation in native ReasonML providing near-instant startup times
MIT License
65 stars 3 forks source link

Adding unknown arguments after command not working #19

Closed matystl closed 5 years ago

matystl commented 5 years ago

reenv -e bf/.env ls -all this return

reenv: unknown option `-a'.
Usage: reenv [OPTION]... COMMAND [ARGS]...
Try `reenv --help' for more information.

My expectation was after i specify command in this case ls rest -all will be transparently passed to it.

ulrikstrid commented 5 years ago

This is definitely a bug, I'll look into it as soon as I can. Thanks for reporting it!

ulrikstrid commented 5 years ago

Actually, you have to do this to use flags reenv -e .env -- ls --all. There is no good way around it and dotenv-cli does the same thing so I feel like this is expected. I'll add it to the manual in a upcoming PR and close this.