mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-25 19:31:44 +03:00
dev: fix stray empty strings in builtinCommandNames
This commit is contained in:
parent
f5b10b2d40
commit
576417655c
@ -471,7 +471,7 @@ parseCommandHelp :: CommandHelpStr -> Maybe CommandHelp
|
||||
parseCommandHelp t =
|
||||
case lines t of
|
||||
[] -> Nothing
|
||||
(l1:_:l3:ls) -> Just $ CommandHelp cmdname (Just cmdalias) preamble postamble
|
||||
(l1:_:l3:ls) -> Just $ CommandHelp cmdname (if null cmdalias then Nothing else Just cmdalias) preamble postamble
|
||||
where
|
||||
cmdname = l1
|
||||
(cmdalias, rest) =
|
||||
|
Loading…
Reference in New Issue
Block a user