Skip to content

Show format for --help flag. Fixes #2460 #2607

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cabal-install/Distribution/Client/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ globalCommand commands = CommandUI {
, "update"
, "install"
, "fetch"
, "format"
, "list"
, "info"
, "user-config"
Expand Down Expand Up @@ -228,6 +229,7 @@ globalCommand commands = CommandUI {
, addCmd "bench"
, par
, addCmd "check"
, addCmd "format"
, addCmd "sdist"
, addCmd "upload"
, addCmd "report"
Expand Down
3 changes: 1 addition & 2 deletions cabal-install/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ mainWorker args = topHandler $
,execCommand `commandAddAction` execAction
,userConfigCommand `commandAddAction` userConfigAction
,cleanCommand `commandAddAction` cleanAction
,formatCommand `commandAddAction` formatAction
,wrapperAction copyCommand
copyVerbosity copyDistPref
,wrapperAction hscolourCommand
Expand All @@ -256,8 +257,6 @@ mainWorker args = topHandler $
,benchmarkCommand `commandAddAction` benchmarkAction
,hiddenCommand $
uninstallCommand `commandAddAction` uninstallAction
,hiddenCommand $
formatCommand `commandAddAction` formatAction
,hiddenCommand $
upgradeCommand `commandAddAction` upgradeAction
,hiddenCommand $
Expand Down
1 change: 1 addition & 0 deletions cabal-install/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* 'cabal init' now warns if the chosen package name is already
registered in the source package index (#2436).
* New 'cabal install' option: '--offline' (#2578).
* 'cabal format` command now list in '--help' message. (#2460)

1.22.0.0 Johan Tibell <[email protected]> January 2015
* New command: user-config (#2159).
Expand Down