cli: make -I short for --ignore-assertions

Differs from Ledger, but will be useful for hledger-ui.
This commit is contained in:
Simon Michael 2016-07-06 14:54:54 -07:00
parent 9a7fe756b9
commit 0b465f61e7
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ m4_define({{_generaloptions_}}, {{
`--alias=OLD=NEW` `--alias=OLD=NEW`
: display accounts named OLD as NEW : display accounts named OLD as NEW
`--ignore-assertions` `-I --ignore-assertions`
: ignore any failing balance assertions in the journal : ignore any failing balance assertions in the journal
}} )m4_dnl }} )m4_dnl

View File

@ -117,7 +117,7 @@ inputflags = [
flagReq ["file","f"] (\s opts -> Right $ setopt "file" s opts) "FILE" "use a different input file. For stdin, use -" flagReq ["file","f"] (\s opts -> Right $ setopt "file" s opts) "FILE" "use a different input file. For stdin, use -"
,flagReq ["rules-file"] (\s opts -> Right $ setopt "rules-file" s opts) "RFILE" "CSV conversion rules file (default: FILE.rules)" ,flagReq ["rules-file"] (\s opts -> Right $ setopt "rules-file" s opts) "RFILE" "CSV conversion rules file (default: FILE.rules)"
,flagReq ["alias"] (\s opts -> Right $ setopt "alias" s opts) "OLD=NEW" "display accounts named OLD as NEW" ,flagReq ["alias"] (\s opts -> Right $ setopt "alias" s opts) "OLD=NEW" "display accounts named OLD as NEW"
,flagNone ["ignore-assertions"] (setboolopt "ignore-assertions") "ignore any balance assertions in the journal" ,flagNone ["ignore-assertions","I"] (setboolopt "ignore-assertions") "ignore any balance assertions in the journal"
,flagReq ["pivot"] (\s opts -> Right $ setopt "pivot" s opts) "TAG" "Replace the accounts of postings with TAG by TAG:<value>" ,flagReq ["pivot"] (\s opts -> Right $ setopt "pivot" s opts) "TAG" "Replace the accounts of postings with TAG by TAG:<value>"
] ]