From 9beff54b273929ea74f9c7e97651dcd74dc98b03 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 25 Dec 2020 15:59:25 -0800 Subject: [PATCH] help: drop --cat --- hledger/Hledger/Cli/Commands/Help.hs | 6 ++---- hledger/Hledger/Cli/Commands/Help.md | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/hledger/Hledger/Cli/Commands/Help.hs b/hledger/Hledger/Cli/Commands/Help.hs index 3e11e508e..7bf63018b 100644 --- a/hledger/Hledger/Cli/Commands/Help.hs +++ b/hledger/Hledger/Cli/Commands/Help.hs @@ -39,7 +39,6 @@ helpmode = hledgerCommandMode [flagNone ["info"] (setboolopt "info") "show the manual with info" ,flagNone ["man"] (setboolopt "man") "show the manual with man" ,flagNone ["pager"] (setboolopt "pager") "show the manual with $PAGER or less" - ,flagNone ["cat"] (setboolopt "cat") "show the manual on stdout" ,flagNone ["help","h"] (setboolopt "help") "show this help" ] [] @@ -47,7 +46,7 @@ helpmode = hledgerCommandMode ([], Just $ argsFlag "[MANUAL]") -- | List or display one of the hledger manuals in various formats. --- You can select a docs viewer with one of the `--info`, `--man`, `--pager`, `--cat` flags. +-- You can select a docs viewer with one of the `--info`, `--man`, `--pager` flags. -- Otherwise it will use the first available of: info, man, $PAGER, less, stdout -- (and always stdout if output is non-interactive). help' :: CliOpts -> Journal -> IO () @@ -66,7 +65,6 @@ help' opts _ = do | boolopt "info" $ rawopts_ opts = info | boolopt "man" $ rawopts_ opts = man | boolopt "pager" $ rawopts_ opts = pager - | boolopt "cat" $ rawopts_ opts = cat | not interactive = cat | "info" `elem` exes = info | "man" `elem` exes = man @@ -75,7 +73,7 @@ help' opts _ = do case topic of Nothing -> putStrLn $ unlines [ "Please choose a manual by typing \"hledger help MANUAL\" (any substring is ok)." - ,"A viewer (info, man, a pager, or stdout) will be auto-selected," + ,"A viewer (info, man, $PAGER, or stdout) will be auto-selected," ,"or type \"hledger help -h\" to see options. Manuals available:" ] ++ "\n " ++ unwords docTopics diff --git a/hledger/Hledger/Cli/Commands/Help.md b/hledger/Hledger/Cli/Commands/Help.md index 82bdb9859..aa7736338 100644 --- a/hledger/Hledger/Cli/Commands/Help.md +++ b/hledger/Hledger/Cli/Commands/Help.md @@ -9,7 +9,7 @@ Run it with no argument to list the manuals, or provide a full or partial manual hledger manuals are available in several formats. hledger help will use the first of these display methods that it finds: info, man, $PAGER, less, stdout (or when non-interactive, just stdout). -You can force a particular viewer with the `--info`, `--man`, `--pager`, `--cat` flags. +You can force a particular viewer with the `--info`, `--man`, `--pager` flags. Examples: