imp:demo: ignore a broken journal, like other HELP commands
This commit is contained in:
parent
6a12ff1232
commit
dd559226d8
@ -183,7 +183,7 @@ main = do
|
|||||||
| Just (cmdmode, cmdaction) <- findBuiltinCommand cmd =
|
| Just (cmdmode, cmdaction) <- findBuiltinCommand cmd =
|
||||||
(case True of
|
(case True of
|
||||||
-- these commands should not require or read the journal
|
-- 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
|
-- these commands should create the journal if missing
|
||||||
_ | cmd `elem` ["add","import"] -> do
|
_ | cmd `elem` ["add","import"] -> do
|
||||||
ensureJournalFileExists . head =<< journalFilePathFromOpts opts
|
ensureJournalFileExists . head =<< journalFilePathFromOpts opts
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user