mirror of
https://github.com/GaloisInc/what4.git
synced 2024-12-01 20:23:10 +03:00
Fix option configHelp retrieval with blank input
This commit is contained in:
parent
a69c2cea9e
commit
9660b4a27b
@ -1131,7 +1131,7 @@ configHelp ::
|
||||
IO [Doc Void]
|
||||
configHelp prefix (Config cfg) =
|
||||
do m <- readMVar cfg
|
||||
let ps = Text.splitOn "." prefix
|
||||
let ps = dropWhile Text.null $ Text.splitOn "." prefix
|
||||
f :: [Text] -> ConfigLeaf -> WriterT (Seq (Doc Void)) IO ConfigLeaf
|
||||
f nm leaf = do d <- liftIO (ppConfigLeaf nm leaf)
|
||||
tell (Seq.singleton d)
|
||||
|
Loading…
Reference in New Issue
Block a user