stackbuilders / stackbuilders/dotenv-hs
Error parsing command arguments
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 66
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
I got the following error passing a "command" as an argument to yesod devel:
> dotenv -o -- yesod devel --success-hook "echo foo"
Invalid argument `foo'
Usage: yesod [-d|--dev] [-v|--verbose] COMMAND
If I call it directly, it works as expected:
> yesod devel --success-hook "echo foo"
My theory is that this is not related to yesod devel per se, but rather to how dotenv -- <command> <args> works, as it seems that is not properly escaping the arguments after --
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the dotenv -o -- yesod devel --success-hook "echo foo" command and inspect how arguments after -- are parsed and passed through. Done means the quoted echo foo value remains a single argument while the direct yesod devel behavior continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100