Skip to content

Commit

Permalink
imp:demo: ignore a broken journal, like other HELP commands
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Aug 22, 2023
1 parent 6a12ff1 commit dd55922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hledger/Hledger/Cli/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd55922

Please sign in to comment.