imp:print: alphabetise flags, mostly
This commit is contained in:
parent
3a1e30255c
commit
ed5cf569b5
@ -48,17 +48,17 @@ import Hledger.Write.Beancount (commodityToBeancount, tagsToBeancountMetadata)
|
|||||||
|
|
||||||
printmode = hledgerCommandMode
|
printmode = hledgerCommandMode
|
||||||
$(embedFileRelative "Hledger/Cli/Commands/Print.txt")
|
$(embedFileRelative "Hledger/Cli/Commands/Print.txt")
|
||||||
([flagNone ["explicit","x"] (setboolopt "explicit")
|
([
|
||||||
"show all amounts explicitly"
|
flagNone ["explicit","x"] (setboolopt "explicit") "show all amounts explicitly"
|
||||||
,roundFlag
|
|
||||||
,flagNone ["invert"] (setboolopt "invert") "display all amounts with reversed sign"
|
,flagNone ["invert"] (setboolopt "invert") "display all amounts with reversed sign"
|
||||||
,flagNone ["new"] (setboolopt "new")
|
,flagNone ["location"] (setboolopt "location") "add tags showing file paths and line numbers"
|
||||||
"show only newer-dated transactions added in each file since last run"
|
|
||||||
,let arg = "DESC" in
|
,let arg = "DESC" in
|
||||||
flagReq ["match","m"] (\s opts -> Right $ setopt "match" s opts) arg
|
flagReq ["match","m"] (\s opts -> Right $ setopt "match" s opts) arg
|
||||||
("fuzzy search for one recent transaction with description closest to "++arg)
|
("fuzzy search for one recent transaction with description closest to "++arg)
|
||||||
,flagReq ["base-url"] (\s opts -> Right $ setopt "base-url" s opts) "URLPREFIX" "in html output, generate links to hledger-web, with this prefix. (Usually the base url shown by hledger-web; can also be relative.)"
|
,flagNone ["new"] (setboolopt "new") "show only newer-dated transactions added in each file since last run"
|
||||||
,flagNone ["location"] (setboolopt "location") "add tags showing file paths and line numbers"
|
,roundFlag
|
||||||
|
,flagReq ["base-url"] (\s opts -> Right $ setopt "base-url" s opts) "URLPREFIX"
|
||||||
|
"in html output, generate links to hledger-web, with this prefix. (Usually the base url shown by hledger-web; can also be relative.)"
|
||||||
,outputFormatFlag ["txt","beancount","csv","tsv","html","fods","json","sql"]
|
,outputFormatFlag ["txt","beancount","csv","tsv","html","fods","json","sql"]
|
||||||
,outputFileFlag
|
,outputFileFlag
|
||||||
])
|
])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user