Skip to content

Commit

Permalink
MNT Add backwards compatibility option for --search-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
unode authored and luispedro committed Oct 28, 2018
1 parent ef65394 commit dc769d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion NGLess/CmdArgs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ mainArgs = DefaultMode
<*> optional (strOption $ long "export-json" <> help "File to write JSON representation of script to") -- exportJSON :: Maybe FilePath
<*> optional (strOption $ long "export-cwl" <> help "File to write CWL wrapper of given script") -- exportCWL :: Maybe FilePath
<*> switch (long "check-deprecation" <> help "Check if ngless version or any used modules have been deprecated")-- deprecationCheck :: Bool
<*> many (strOption $ long "search-path" <> help "Reference search directories (replace <references> in script)") -- searchPath :: [FilePath]
<*> many (
(strOption $ long "search-dir" <> help "Deprecated. Use --search-path instead") -- searchDir :: [FilePath]
<|> (strOption $ long "search-path" <> help "Reference search directories (replace <references> in script)") -- searchPath :: [FilePath]
)
<*> optional (strOption $ long "index-path" <> help "Index path (directory where indices are stored)") -- indexPath :: Maybe FilePath
<*> many (strArgument (metavar "ARGV")) -- extraArgs :: [String]

Expand Down

0 comments on commit dc769d7

Please sign in to comment.