Don't consider StaticFlags when parsing arguments.
Don't consider StaticFlags when parsing arguments.

Instead, discard any static flags before parsing the command line using
GHC's DynFlags parser.

See http://ghc.haskell.org/trac/ghc/ticket/8276

Based off a patch from Simon Hengel.

Signed-off-by: Austin Seipp <7ea35d812706d9213868749011af1ed4fa2f6aa0@well-typed.com>

Fuuzetsu/haddock,Helkafen/haddock,Wizek/haddock,sboosali/haddock,adamse/haddock,JPMoresmau/haddock,mrBliss/haddock,Fuuzetsu/haddock,esmolanka/haddock,haskell/haddock,lamefun/haddock,niteria/haddock,JPMoresmau/haddock,haskell/haddock,Helkafen/haddock,Helkafen/haddock,esmolanka/haddock,JPMoresmau/haddock,Mistuke/haddock,mrhania/haddock,Mistuke/haddock,mrBliss/haddock,randen/haddock,Fuuzetsu/haddock,beni55/haddock,idontgetoutmuch/haddock,idontgetoutmuch/haddock,mrBliss/haddock,jgm/haddock,niteria/haddock,Acidburn0zzz/haddock,jstolarek/haddock,mrhania/haddock,lamefun/haddock,haskell/haddock,jgm/haddock,beni55/haddock,idontgetoutmuch/haddock,Fuuzetsu/haddock,jstolarek/haddock,esmolanka/haddock,Acidburn0zzz/haddock,randen/haddock,haskell/haddock,sboosali/haddock,Wizek/haddock,Mistuke/haddock,niteria/haddock,lamefun/haddock,randen/haddock,adamse/haddock,haskell/haddock,Wizek/haddock,sboosali/haddock,adamse/haddock,mrhania/haddock,beni55/haddock,Acidburn0zzz/haddock