Permalink
Browse files

Merge pull request #8 from baldo/master

Pass empty command line arguments to the custom binary.
  • Loading branch information...
2 parents 7d044d0 + 6d287f4 commit b335d62f3a139b510eaeb6ae6f28130791661f96 @willdonnelly committed Jul 26, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 Config/Dyre/Options.hs
View
14 Config/Dyre/Options.hs
@@ -110,13 +110,13 @@ customOptions otherArgs = do
Nothing -> getArgs
Just oa -> return oa
-- Combine the other arguments with the Dyre-specific ones
- let args = filter (not . null) $
- mainArgs ++ [ if debugMode then "--dyre-debug" else ""
- , case stateFile of
- Nothing -> ""
- Just sf -> "--dyre-state-persist=" ++ sf
- , "--dyre-master-binary=" ++ fromJust masterPath
- ]
+ let args = mainArgs ++ (filter (not . null) $
+ [ if debugMode then "--dyre-debug" else ""
+ , case stateFile of
+ Nothing -> ""
+ Just sf -> "--dyre-state-persist=" ++ sf
+ , "--dyre-master-binary=" ++ fromJust masterPath
+ ])
return args
-- | Look for the given flag in the argument array, and store

0 comments on commit b335d62

Please sign in to comment.