Skip to content

stack does not say which were the invalid flags #1461

Closed
@ndmitchell

Description

@ndmitchell

In the nested submodes, Stack doesn't say what flags are invalid, which is a pain:

  C:\Neil\shake>stack --version
  Version 0.1.9.0, Git revision c7178d4d7fa779aafc67a2b48485d01b9435739f i386

  C:\Neil\shake>stack build --foo=1
  Usage: stack build [TARGET] [--library-profiling] [--executable-profiling]
                     [--haddock] ([--haddock-deps] | [--no-haddock-deps])
                     [--dry-run] [--pedantic] [--fast] [--ghc-options OPTION]
                     [--flag PACKAGE:[-]FLAG] [--copy-bins] [--prefetch]
                     ([--dependencies-only] | [--only-snapshot] |
                     [--only-dependencies]) ([--file-watch] | [--file-watch-poll])
                     ([--keep-going] | [--no-keep-going]) [--force-dirty] [--test]
                     [--no-rerun-tests] [--test-arguments TEST_ARGS] [--coverage]
                     [--no-run-tests] [--bench] [--benchmark-arguments BENCH_ARGS]
                     [--no-run-benchmarks] [--exec CMD [ARGS]] [--only-configure]
                     [--reconfigure] [--cabal-verbose] [--help]
    Build the package(s) in this directory/configuration

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions