fix: add, commodities, diff: support the --conf and -n/--no-conf flags [#2446]
This commit is contained in:
parent
a28c933677
commit
b5cb1d08d0
@ -53,7 +53,7 @@ addmode = hledgerCommandMode
|
||||
$(embedFileRelative "Hledger/Cli/Commands/Add.txt")
|
||||
[flagNone ["no-new-accounts"] (setboolopt "no-new-accounts") "don't allow creating new accounts"]
|
||||
[generalflagsgroup2]
|
||||
[]
|
||||
confflags
|
||||
([], Just $ argsFlag "[-f JOURNALFILE] [DATE [DESCRIPTION [ACCOUNT1 [ETC..]]]]]")
|
||||
|
||||
-- | State used while entering transactions.
|
||||
|
||||
@ -32,7 +32,7 @@ commoditiesmode = hledgerCommandMode
|
||||
,flagNone ["unused"] (setboolopt "unused") "list commodities declared but not used"
|
||||
]
|
||||
[generalflagsgroup2]
|
||||
[]
|
||||
confflags
|
||||
([], Just $ argsFlag "[QUERY..]")
|
||||
|
||||
commodities :: CliOpts -> Journal -> IO ()
|
||||
|
||||
@ -30,7 +30,7 @@ diffmode = hledgerCommandMode
|
||||
$(embedFileRelative "Hledger/Cli/Commands/Diff.txt")
|
||||
[]
|
||||
[generalflagsgroup2]
|
||||
[]
|
||||
confflags
|
||||
([], Just $ argsFlag "-f FILE1 -f FILE2 FULLACCOUNTTNAME")
|
||||
|
||||
data PostingWithPath = PostingWithPath {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user