Skip to content

Give better error message when a global option is passed after command, not before (was "Option --config-file not recognized out of order") #7704

Open
@andreasabel

Description

@andreasabel

--config-file is listed as global option by cabal --help, but get/unpack does not recognize it:

$ cabal get --config-file=foo
Error: cabal: unrecognized 'get' option `--config-file=foo'

(Spawned from #7702 (comment).)

UPDATE:

$ cabal --config-file=foo get bar

works, so this is merely an issue about a more user-friendly parsing of command-line options.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions