imp: close: restore legacy flags --closing/--opening/--close-to/--open-from (#2020)
They're cruft, but hidden and low cost and remove one more user hassle.
This commit is contained in:
parent
c151d57069
commit
ba0bb5eb4a
@ -43,8 +43,12 @@ closemode = hledgerCommandMode
|
|||||||
]
|
]
|
||||||
[generalflagsgroup1]
|
[generalflagsgroup1]
|
||||||
(hiddenflags
|
(hiddenflags
|
||||||
-- any old command flags for compatibility, hidden
|
++ -- keep supporting old flag names for compatibility
|
||||||
-- ++ []
|
[flagNone ["closing"] (setboolopt "close") "old spelling of --close"
|
||||||
|
,flagNone ["opening"] (setboolopt "open") "old spelling of --open"
|
||||||
|
,flagReq ["close-to"] (\s opts -> Right $ setopt "close-acct" s opts) "ACCT" "old spelling of --close-acct"
|
||||||
|
,flagReq ["open-from"] (\s opts -> Right $ setopt "open-acct" s opts) "ACCT" "old spelling of --open-acct"
|
||||||
|
]
|
||||||
)
|
)
|
||||||
([], Just $ argsFlag "[--close | --open | --migrate | --retain] [ACCTQUERY]")
|
([], Just $ argsFlag "[--close | --open | --migrate | --retain] [ACCTQUERY]")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user