haskell / haskell/cabal

Global flags are in the way

Open
#9,783 2 comments 0 reactions 0 assignees View on GitHub
type: user-question
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Lots of commands take targets.

_Originally posted by @philderbeast in https://github.com/haskell/cabal/issues/9744#issuecomment-1980928890_

I thought of maybe listing the commands that take targets but quickly gave up, not wanting to scroll up past 6 pages of global flags to see whether the command takes `[TARGETS]`;

```
$ cabal build --help
Compile targets within the project.

Usage: cabal build [TARGETS] [FLAGS]

Description ...

Flags for build (includes global flags):
...
1st page of flags
2nd " " "
3rd " " "
4th " " "
5th " " "
6th " " "

Examples ...
```

Can we not show the global flags by default?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.