Skip to content

better error reporting for cabal v2-run -- --opts #6074

@nomeata

Description

@nomeata

When I run

cabal new-run

it (usually) picks a sensible target to run. But then I want to pass arguments, like

cabal new-run -- --help

and I get

$ cabal new-run -- --help
cabal: Unknown target '--help'.
There is no component '--help'.
The project has no package '--help'

I see how that can be justified if -- means “treat the rest as non-option arguments”, but I find “pass the rest to the called function” more usefull.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions