Skip to content
This repository
Browse code

Do not filter empty command line arguments.

  • Loading branch information...
commit 6d287f48a27aea53bd169bdef68deb044251e7ec 1 parent 8db5f7f
Andreas Baldeau authored July 15, 2011

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. 14  Config/Dyre/Options.hs
14  Config/Dyre/Options.hs
@@ -106,13 +106,13 @@ customOptions otherArgs = do
106 106
                      Nothing -> getArgs
107 107
                      Just oa -> return oa
108 108
     -- Combine the other arguments with the Dyre-specific ones
109  
-    let args = filter (not . null) $
110  
-            mainArgs ++ [ if debugMode then "--dyre-debug" else ""
111  
-                        , case stateFile of
112  
-                               Nothing -> ""
113  
-                               Just sf -> "--dyre-state-persist=" ++ sf
114  
-                        , "--dyre-master-binary=" ++ fromJust masterPath
115  
-                        ]
  109
+    let args = mainArgs ++ (filter (not . null) $
  110
+            [ if debugMode then "--dyre-debug" else ""
  111
+            , case stateFile of
  112
+                   Nothing -> ""
  113
+                   Just sf -> "--dyre-state-persist=" ++ sf
  114
+            , "--dyre-master-binary=" ++ fromJust masterPath
  115
+            ])
116 116
     return args
117 117
 
118 118
 -- | Look for the given flag in the argument array, and store

0 notes on commit 6d287f4

Please sign in to comment.
Something went wrong with that request. Please try again.