summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2022-10-05 17:15:45 +1100
committerJustin Bedo <cu@cua0.org>2022-10-05 17:19:45 +1100
commit8460d9a2138ceb0ec45e70f55d20c0073b078621 (patch)
tree3c14820479077445d52efbc3180a640bf6d08c8c
parent5e2bda5ef2f7e95a164603829d983f61d0737b5f (diff)
fix optional string parser
-rw-r--r--src/scrape.hs14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/scrape.hs b/src/scrape.hs
index e877a9c..4b10fbd 100644
--- a/src/scrape.hs
+++ b/src/scrape.hs
@@ -50,14 +50,12 @@ main = configured =<< execParser opts
<> showDefault
<> value 0.1
)
- <*> option
- auto
- ( long "extra"
- <> short 'e'
- <> metavar "PATH"
- <> help "path to JSON map between URNs and uniprot ids to supplement MaveDB URN query"
- <> value Nothing
- )
+ <*> optional (strOption
+ ( long "extra"
+ <> short 'e'
+ <> metavar "PATH"
+ <> help "path to JSON map between URNs and uniprot ids to supplement MaveDB URN query"
+ ))
opts =
info