;cli: slightly clearer message for this unlikely error case
This commit is contained in:
parent
19f257621c
commit
c5b0eab37a
@ -155,7 +155,7 @@ main = do
|
|||||||
dbgIO "interval from opts" (interval_ . rsOpts $ reportspec_ opts)
|
dbgIO "interval from opts" (interval_ . rsOpts $ reportspec_ opts)
|
||||||
dbgIO "query from opts & args" (rsQuery $ reportspec_ opts)
|
dbgIO "query from opts & args" (rsQuery $ reportspec_ opts)
|
||||||
let
|
let
|
||||||
journallesserror = error "journal-less command tried to use the journal"
|
journallesserror = error $ cmd++" tried to read the journal but is not supposed to"
|
||||||
runHledgerCommand
|
runHledgerCommand
|
||||||
-- high priority flags and situations. -h, then --help, then --info are highest priority.
|
-- high priority flags and situations. -h, then --help, then --info are highest priority.
|
||||||
| hasHelpFlag argsbeforecmd = dbgIO "" "-h before command, showing general usage" >> printUsage
|
| hasHelpFlag argsbeforecmd = dbgIO "" "-h before command, showing general usage" >> printUsage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user