@@ -14,7 +14,7 @@ import Data.Maybe (Maybe, fromMaybe, optional)
1414import Data.Unfoldable (class Unfoldable)
1515import Effect (Effect)
1616import Effect.Console (log)
17−import Options.Applicative (Parser, command, execParser, fullDesc, helper, info, long, metavar, progDesc, strOption, subparser, value, (<**>))
17+import Options.Applicative (Parser, command, execParser, flag, fullDesc, help, helper, info, long, metavar, progDesc, strOption, subparser, value, (<**>))
1818import Options.Applicative as CA
1919
2020
@@ -45,6 +45,7 @@ data Commands
4545 { docsFiles :: Array String
4646 , bowerFiles :: Array String
4747 , generatedDocs :: String
48+ , noPatch :: Boolean
4849 }
4950 | Search
5051 { docsFiles :: Array String
@@ -92,7 +93,12 @@ buildIndex = ado
9293 <> value "./generated-docs/"
9394 )
9495
95− in BuildIndex { docsFiles, bowerFiles, generatedDocs }
96+ noPatch <- flag false true
97+ ( long "no-patch"
98+ <> help "Do not patch the HTML docs, only build indices"
99+ )
100+
101+ in BuildIndex { docsFiles, bowerFiles, generatedDocs, noPatch }
96102
97103
98104startInteractive :: Parser Commands