Improved argument handling for cabal flags.