@@ -360,9 +360,9 @@ globalCommand commands = CommandUI {
360
360
,multiOption " nix"
361
361
globalNix (\ v flags -> flags { globalNix = v })
362
362
[
363
- noArg (Flag True ) [] [" enable-nix" ]
363
+ noArg (Flag True ) [] [" enable-nix" ]
364
364
" Enable Nix integration: run commands through nix-shell if a 'shell.nix' file exists" ,
365
- noArg (Flag False ) [] [" disable-nix" ]
365
+ noArg (Flag False ) [] [" disable-nix" ]
366
366
" Disable Nix integration"
367
367
]
368
368
@@ -2031,7 +2031,7 @@ initCommand = CommandUI {
2031
2031
commandSynopsis = " Create a new cabal package." ,
2032
2032
commandDescription = Just $ \ _ -> wrapText $
2033
2033
" Create a .cabal, CHANGELOG.md, minimal initial Haskell code and optionally a LICENSE file.\n "
2034
- ++ " \n "
2034
+ ++ " \n "
2035
2035
++ " Calling init with no arguments runs interactive mode, "
2036
2036
++ " which will try to guess as much as possible and prompt you for the rest.\n "
2037
2037
++ " Non-interactive mode can be invoked by the -n/--non-interactive flag, "
@@ -2230,11 +2230,9 @@ initOptions _ =
2230
2230
(reqArg' " TOOL" (Flag . (: [] ))
2231
2231
(fromFlagOrDefault [] ))
2232
2232
2233
- -- NB: this is a bit of a transitional hack and will likely be
2234
- -- removed again if `cabal init` is migrated to the v2-* command
2235
- -- framework
2236
2233
, option " w" [" with-compiler" ]
2237
- " give the path to a particular compiler"
2234
+ " give the path to a particular compiler. For 'init', this flag is used \
2235
+ \to set the bounds inferred for the 'base' package."
2238
2236
IT. initHcPath (\ v flags -> flags { IT. initHcPath = v })
2239
2237
(reqArgFlag " PATH" )
2240
2238
0 commit comments