Skip to content
Permalink
Browse files

MNT Add backwards compatibility option for --search-dir

  • Loading branch information...
unode authored and luispedro committed Oct 28, 2018
1 parent ef65394 commit dc769d74f19a52ea4f328176daeb69639c33fb29
Showing with 4 additions and 1 deletion.
  1. +4 −1 NGLess/CmdArgs.hs
@@ -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]

0 comments on commit dc769d7

Please sign in to comment.
You can’t perform that action at this time.