FIX #1653 (partially): add -X flags to completion for :set
authorSimon Marlow <simonmar@microsoft.com>
Tue, 13 Nov 2007 15:32:57 +0000 (15:32 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 13 Nov 2007 15:32:57 +0000 (15:32 +0000)
compiler/main/DynFlags.hs

index 2603c85..f8322f2 100644 (file)
@@ -936,10 +936,13 @@ allFlags :: [String]
 allFlags = map ('-':) $
            [ name | (name, optkind) <- dynamic_flags, ok optkind ] ++
            map ("fno-"++) flags ++
-           map ("f"++) flags
+           map ("f"++) flags ++
+           map ("X"++) xs ++
+           map ("XNo"++) xs
     where ok (PrefixPred _ _) = False
           ok _ = True
           flags = map fst fFlags
+          xs = map fst xFlags
 
 dynamic_flags :: [(String, OptKind DynP)]
 dynamic_flags = [