cli: fix a commands list error when no addons are in path

This commit is contained in:
Simon Michael 2017-03-29 08:13:09 -07:00
parent b402fc7e7d
commit 8d1b1fbfc5

View File

@ -264,7 +264,6 @@ Misc:
rewrite add automated postings to certain transactions
test run some self tests
OTHERCMDS
Help: (see also -h, CMD -h, --help|---man|--info)
help|man|info show any of the hledger manuals in text/man/info format
|]
@ -291,7 +290,7 @@ printCommandsList addonsFound = putStr commandsList
adjustline l = [l]
commandsList1 =
regexReplace "OTHERCMDS" (init $ unlines [' ':w | w <- unknownCommandsFound]) $
regexReplace "OTHERCMDS" (unlines [' ':w | w <- unknownCommandsFound]) $
unlines $ concatMap adjustline $ lines commandsListTemplate
commandsList =