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

--no-terminal accepted in unexpected position #679

Closed
Fuuzetsu opened this issue Jul 27, 2015 · 1 comment
Closed

--no-terminal accepted in unexpected position #679

Fuuzetsu opened this issue Jul 27, 2015 · 1 comment

Comments

@Fuuzetsu
Copy link
Contributor

As per stack --help:

Usage: stack [--version] [--help] [--docker*] ([--verbosity VERBOSITY] |
             [-v|--verbose]) ([--system-ghc] | [--no-system-ghc])
             ([--install-ghc] | [--no-install-ghc]) [--arch ARCH] [--os OS]
             [-j|--jobs JOBS] [--extra-include-dirs DIR] [--extra-lib-dirs DIR]
             ([--skip-ghc-check] | [--no-skip-ghc-check]) ([--skip-msys] |
             [--no-skip-msys]) [--local-bin-path DIR] [--resolver RESOLVER]
             [--no-terminal] [--stack-yaml STACK-YAML] COMMAND

So I would expect stack build --haddock --ghc-option "-fPIC" --no-terminal to not work, but it does. But stack build --haddock --no-terminal --ghc-options "-fPIC" does not work. From the help text I'd expect that only stack --no-terminal build … would work.

To me it seems that the stack flags are also accepted after COMMAND which is not reflected in the help text.

Fuuzetsu added a commit to tweag/HaskellR that referenced this issue Jul 27, 2015
The positioning of --no-terminal is a bit strange, see
commercialhaskell/stack#679
@borsboom
Copy link
Contributor

This is a symptom of #519, closing in favour.

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