Skip to content

Ordering of options should not matter #1531

Closed
@harendra-kumar

Description

@harendra-kumar

All of the following behave in the same way. Perhaps it silently ignores whatever follows --solver and parses as a valid option.

stack init --solver
stack init --solver --resolver ghc-7.8.4
stack init --solver --compiler ghc-7.8.4

But if I change the order it spits out an error message:

cueball:/vol/hosts/cueball/workspace/halberd$ stack init --resolver ghc-7.8.4 --solver
Usage: stack init ([--solver] | [--resolver RESOLVER] | [--prefer-lts] |
                  [--prefer-nightly]) [--force] [--ignore-subdirs]
                  [--nix-shell-file FILEPATH] [--help]
  Initialize a stack project based on one or more cabal packages

Though it still does not say what's wrong with it. I found #601 and #1461 raised about this already.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions