diff --git a/Cabal/src/Distribution/Simple/Setup/Config.hs b/Cabal/src/Distribution/Simple/Setup/Config.hs index 8e027aef549..52203713d02 100644 --- a/Cabal/src/Distribution/Simple/Setup/Config.hs +++ b/Cabal/src/Distribution/Simple/Setup/Config.hs @@ -434,7 +434,7 @@ configureOptions showOrParseArgs = configHcFlavor (\v flags -> flags{configHcFlavor = v}) ( choiceOpt - [ (Flag GHC, ("g", ["ghc"]), "Compile with GHC") + [ (Flag GHC, ([], ["ghc"]), "Compile with GHC") , (Flag GHCJS, ([], ["ghcjs"]), "Compile with GHCJS") , (Flag UHC, ([], ["uhc"]), "Compile with UHC") ] @@ -599,7 +599,7 @@ configureOptions showOrParseArgs = Flag MaximalDebugInfo -> [Just "3"] _ -> [] ) - "" + "g" ["enable-debug-info"] "Emit debug info (n is 0--3, default is 0)" , noArg diff --git a/changelog.d/12201.md b/changelog.d/12201.md new file mode 100644 index 00000000000..23d4752f81f --- /dev/null +++ b/changelog.d/12201.md @@ -0,0 +1,17 @@ +--- +synopsis: Removes the short `-g` option for the `--ghc` flag +packages: [Cabal] +prs: 12201 +--- + +- Removes the short `-g` option for the `--ghc` flag. This is now used as the short option for `--enable-debug-info`. +```diff + $ cabal build --help +... +- -g, --ghc compile with GHC ++ --ghc compile with GHC +... +- --enable-debug-info[=n] Emit debug info (n is 0--3, default is 0) ++ -g n or -gn, --enable-debug-info[=n] ++ Emit debug info (n is 0--3, default is 0) +```