Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cabal sandbox --help does not include short description of what the commands do #1886

Closed
alexanderkjeldaas opened this issue May 21, 2014 · 4 comments

Comments

@alexanderkjeldaas
Copy link
Contributor

The --help informaion in cabal isn't informative enough.

$ cabal sandbox --help
Usage: cabal sandbox init
or: cabal sandbox delete
or: cabal sandbox add-source [PATHS]

or: cabal sandbox hc-pkg -- [ARGS]
or: cabal sandbox list-sources

Flags for sandbox:
-h --help Show this help text
-v --verbose[=n] Control verbosity (n is 0--3, default verbosity level is 1)
--snapshot Take a snapshot instead of creating a link (only applies to
'add-source')
--sandbox=DIR Sandbox location (default: './.cabal-sandbox').

Compare this to:

$ go help
Go is a tool for managing Go source code.

Usage:

go command [arguments]

The commands are:

build       compile packages and dependencies
clean       remove object files
env         print Go environment information
fix         run go tool fix on packages
fmt         run gofmt on package sources
get         download and install packages and dependencies
install     compile and install packages and dependencies
list        list packages
run         compile and run Go program
test        test packages
tool        run specified go tool
version     print Go version
vet         run go tool vet on packages

What cabal should be printing is something like:

$ cabal sandbox --help
Usage: cabal sandbox init Create a new sandbox
or: cabal sandbox delete Delete a sandbox
or: cabal sandbox add-source [PATHS]

or: cabal sandbox hc-pkg -- [ARGS] WTF is this doing??
or: cabal sandbox list-sources List sources

Flags for sandbox:
-h --help Show this help text
-v --verbose[=n] Control verbosity (n is 0--3, default verbosity level is 1)
--snapshot Take a snapshot instead of creating a link (only applies to
'add-source')
--sandbox=DIR Sandbox location (default: './.cabal-sandbox').

@kosmikus
Copy link
Contributor

There also seem to be additional sandbox commands that are not listed. There's at least also delete-source which is only explained once you type list-sources.

@alexanderkjeldaas
Copy link
Contributor Author

cabal help is a great example, it looks like go help which descriptions.

@23Skidoo 23Skidoo self-assigned this May 21, 2014
@23Skidoo
Copy link
Member

Good suggestion.

@lspitzner
Copy link
Collaborator

i think this can be closed now that #2259 is merged.

@tibbe tibbe closed this as completed Jan 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants