From f97954a796278ba447b70bf86155319a7655e4da Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 5 Mar 2025 11:37:25 -1000 Subject: [PATCH] dev:commands: don't require a journal file --- hledger/Hledger/Cli.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger/Hledger/Cli.hs b/hledger/Hledger/Cli.hs index 218fc6efa..d6f8c9785 100644 --- a/hledger/Hledger/Cli.hs +++ b/hledger/Hledger/Cli.hs @@ -412,7 +412,7 @@ main = withGhcDebug' $ do | manFlag -> runManForTopic "hledger" mmodecmdname -- 6.5.2. builtin command which should not require or read the journal - run it - | cmdname `elem` ["demo","help","test"] -> + | cmdname `elem` ["commands","demo","help","test"] -> cmdaction opts (ignoredjournal cmdname) -- 6.5.3. builtin command which should create the journal if missing - do that and run it