Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error with -- and -p #167

Open
zhujinxuan opened this issue Nov 18, 2019 · 1 comment
Open

Parsing error with -- and -p #167

zhujinxuan opened this issue Nov 18, 2019 · 1 comment

Comments

@zhujinxuan
Copy link
Contributor

snack run -p package.yaml -- '--version'

cannot be parsed, with error as

Invalid option `--version'

Usage: snack [-l|--lib DIR] ([-s|--snack-nix PATH] | [--no-snack-nix])
             [-j|--jobs INT] [-p|--package-file PATH] (COMMAND | COMMAND)
@zhujinxuan zhujinxuan changed the title Parsing error Parsing error with -- and -p Nov 18, 2019
@nmattia
Copy link
Owner

nmattia commented Nov 20, 2019

mh, this isn't good. According to the doc:

However, parsers always accept a special argument: --. When a -- is found on the command line, all the following words are considered by argument parsers, regardless of whether they start with - or not.

I might have missed something here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants