From dd559226d81b53882aecae296fc91f5a6491b87b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 22 Aug 2023 07:11:53 +0100 Subject: [PATCH] imp:demo: ignore a broken journal, like other HELP commands --- hledger/Hledger/Cli/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger/Hledger/Cli/Main.hs b/hledger/Hledger/Cli/Main.hs index aff725f079b..c079a11d14b 100644 --- a/hledger/Hledger/Cli/Main.hs +++ b/hledger/Hledger/Cli/Main.hs @@ -183,7 +183,7 @@ main = do | Just (cmdmode, cmdaction) <- findBuiltinCommand cmd = (case True of -- these commands should not require or read the journal - _ | cmd `elem` ["test","help"] -> cmdaction opts journallesserror + _ | cmd `elem` ["demo","help","test"] -> cmdaction opts journallesserror -- these commands should create the journal if missing _ | cmd `elem` ["add","import"] -> do ensureJournalFileExists . head =<< journalFilePathFromOpts opts