help: mention -h & output options in default output

This commit is contained in:
Simon Michael 2017-07-24 22:19:57 +01:00
parent 8313695306
commit 9b9a1a7a30

View File

@ -77,6 +77,7 @@ help' opts = do
case topic of case topic of
Nothing -> putStrLn $ [here| Nothing -> putStrLn $ [here|
Please choose a manual by typing "hledger help MANUAL" (any substring is ok). Please choose a manual by typing "hledger help MANUAL" (any substring is ok).
Manuals: A viewer (info, man, a pager, or stdout) will be auto-selected,
|] ++ " " ++ intercalate " " docTopics or type "hledger help -h" to see options. Manuals available:
|] ++ "\n " ++ intercalate " " docTopics
Just t -> viewer t Just t -> viewer t