print: bring back the short -x form of --explicit (#442)
This commit is contained in:
parent
59704dcb6b
commit
863989e0e7
@ -36,7 +36,7 @@ printmode = (defCommandMode $ ["print"] ++ aliases) {
|
|||||||
flagReq ["match","m"] (\s opts -> Right $ setopt "match" s opts) matcharg
|
flagReq ["match","m"] (\s opts -> Right $ setopt "match" s opts) matcharg
|
||||||
("show the transaction whose description is most similar to "++matcharg
|
("show the transaction whose description is most similar to "++matcharg
|
||||||
++ ", and is most recent"),
|
++ ", and is most recent"),
|
||||||
flagNone ["explicit"] (setboolopt "explicit")
|
flagNone ["explicit","x"] (setboolopt "explicit")
|
||||||
"show all amounts explicitly"
|
"show all amounts explicitly"
|
||||||
]
|
]
|
||||||
++ outputflags
|
++ outputflags
|
||||||
|
|||||||
@ -353,7 +353,7 @@ As with [help](#help), run it with no arguments to list available topics (manual
|
|||||||
## print
|
## print
|
||||||
Show transactions from the journal.
|
Show transactions from the journal.
|
||||||
|
|
||||||
` --explicit`
|
`-x --explicit`
|
||||||
: show all amounts explicitly
|
: show all amounts explicitly
|
||||||
|
|
||||||
`-m STR --match=STR `
|
`-m STR --match=STR `
|
||||||
@ -397,7 +397,7 @@ However it may not preserve all original content, eg it does not print directive
|
|||||||
|
|
||||||
Normally, transactions' implicit/explicit amount style is preserved:
|
Normally, transactions' implicit/explicit amount style is preserved:
|
||||||
when an amount is omitted in the journal, it will be omitted in the output.
|
when an amount is omitted in the journal, it will be omitted in the output.
|
||||||
You can use the `--explicit` flag to make all amounts explicit, which can be
|
You can use the `-x/--explicit` flag to make all amounts explicit, which can be
|
||||||
useful for troubleshooting or for making your journal more readable and
|
useful for troubleshooting or for making your journal more readable and
|
||||||
robust against data entry errors.
|
robust against data entry errors.
|
||||||
Note, in this mode postings with a multi-commodity amount
|
Note, in this mode postings with a multi-commodity amount
|
||||||
|
|||||||
@ -1890,7 +1890,7 @@ As with help, run it with no arguments to list available topics
|
|||||||
.PP
|
.PP
|
||||||
Show transactions from the journal.
|
Show transactions from the journal.
|
||||||
.TP
|
.TP
|
||||||
.B \f[C]\-\-explicit\f[]
|
.B \f[C]\-x\ \ \ \ \ \-\-explicit\f[]
|
||||||
show all amounts explicitly
|
show all amounts explicitly
|
||||||
.RS
|
.RS
|
||||||
.RE
|
.RE
|
||||||
@ -1949,9 +1949,9 @@ directives or inter\-transaction comments.
|
|||||||
Normally, transactions\[aq] implicit/explicit amount style is preserved:
|
Normally, transactions\[aq] implicit/explicit amount style is preserved:
|
||||||
when an amount is omitted in the journal, it will be omitted in the
|
when an amount is omitted in the journal, it will be omitted in the
|
||||||
output.
|
output.
|
||||||
You can use the \f[C]\-\-explicit\f[] flag to make all amounts explicit,
|
You can use the \f[C]\-x/\-\-explicit\f[] flag to make all amounts
|
||||||
which can be useful for troubleshooting or for making your journal more
|
explicit, which can be useful for troubleshooting or for making your
|
||||||
readable and robust against data entry errors.
|
journal more readable and robust against data entry errors.
|
||||||
Note, in this mode postings with a multi\-commodity amount (possible
|
Note, in this mode postings with a multi\-commodity amount (possible
|
||||||
with an implicit amount in a multi\-commodity transaction) will be split
|
with an implicit amount in a multi\-commodity transaction) will be split
|
||||||
into multiple single\-commodity postings, for valid journal output.
|
into multiple single\-commodity postings, for valid journal output.
|
||||||
|
|||||||
@ -1477,7 +1477,7 @@ File: hledger.1.info, Node: print, Next: register, Prev: man, Up: COMMANDS
|
|||||||
|
|
||||||
Show transactions from the journal.
|
Show transactions from the journal.
|
||||||
|
|
||||||
'--explicit'
|
'-x --explicit'
|
||||||
|
|
||||||
show all amounts explicitly
|
show all amounts explicitly
|
||||||
'-m STR --match=STR'
|
'-m STR --match=STR'
|
||||||
@ -1523,12 +1523,12 @@ directives or inter-transaction comments.
|
|||||||
|
|
||||||
Normally, transactions' implicit/explicit amount style is preserved:
|
Normally, transactions' implicit/explicit amount style is preserved:
|
||||||
when an amount is omitted in the journal, it will be omitted in the
|
when an amount is omitted in the journal, it will be omitted in the
|
||||||
output. You can use the '--explicit' flag to make all amounts explicit,
|
output. You can use the '-x/--explicit' flag to make all amounts
|
||||||
which can be useful for troubleshooting or for making your journal more
|
explicit, which can be useful for troubleshooting or for making your
|
||||||
readable and robust against data entry errors. Note, in this mode
|
journal more readable and robust against data entry errors. Note, in
|
||||||
postings with a multi-commodity amount (possible with an implicit amount
|
this mode postings with a multi-commodity amount (possible with an
|
||||||
in a multi-commodity transaction) will be split into multiple
|
implicit amount in a multi-commodity transaction) will be split into
|
||||||
single-commodity postings, for valid journal output.
|
multiple single-commodity postings, for valid journal output.
|
||||||
|
|
||||||
With -B/-cost, amounts with transaction prices are converted to cost
|
With -B/-cost, amounts with transaction prices are converted to cost
|
||||||
(using the transaction price).
|
(using the transaction price).
|
||||||
@ -2162,63 +2162,63 @@ Node: man47520
|
|||||||
Ref: #man47617
|
Ref: #man47617
|
||||||
Node: print48022
|
Node: print48022
|
||||||
Ref: #print48127
|
Ref: #print48127
|
||||||
Node: register51877
|
Node: register51883
|
||||||
Ref: #register51990
|
Ref: #register51996
|
||||||
Node: Custom register output56486
|
Node: Custom register output56492
|
||||||
Ref: #custom-register-output56617
|
Ref: #custom-register-output56623
|
||||||
Node: stats57914
|
Node: stats57920
|
||||||
Ref: #stats58020
|
Ref: #stats58026
|
||||||
Node: test58901
|
Node: test58907
|
||||||
Ref: #test58988
|
Ref: #test58994
|
||||||
Node: ADD-ON COMMANDS59356
|
Node: ADD-ON COMMANDS59362
|
||||||
Ref: #add-on-commands59492
|
Ref: #add-on-commands59498
|
||||||
Node: Official add-ons60779
|
Node: Official add-ons60785
|
||||||
Ref: #official-add-ons60921
|
Ref: #official-add-ons60927
|
||||||
Node: api61008
|
Node: api61014
|
||||||
Ref: #api61099
|
Ref: #api61105
|
||||||
Node: ui61151
|
Node: ui61157
|
||||||
Ref: #ui61252
|
Ref: #ui61258
|
||||||
Node: web61310
|
Node: web61316
|
||||||
Ref: #web61401
|
Ref: #web61407
|
||||||
Node: Third party add-ons61447
|
Node: Third party add-ons61453
|
||||||
Ref: #third-party-add-ons61624
|
Ref: #third-party-add-ons61630
|
||||||
Node: diff61759
|
Node: diff61765
|
||||||
Ref: #diff61858
|
Ref: #diff61864
|
||||||
Node: iadd61957
|
Node: iadd61963
|
||||||
Ref: #iadd62073
|
Ref: #iadd62079
|
||||||
Node: interest62156
|
Node: interest62162
|
||||||
Ref: #interest62279
|
Ref: #interest62285
|
||||||
Node: irr62374
|
Node: irr62380
|
||||||
Ref: #irr62474
|
Ref: #irr62480
|
||||||
Node: Experimental add-ons62552
|
Node: Experimental add-ons62558
|
||||||
Ref: #experimental-add-ons62706
|
Ref: #experimental-add-ons62712
|
||||||
Node: autosync63093
|
Node: autosync63099
|
||||||
Ref: #autosync63207
|
Ref: #autosync63213
|
||||||
Node: budget63446
|
Node: budget63452
|
||||||
Ref: #budget63570
|
Ref: #budget63576
|
||||||
Node: chart63636
|
Node: chart63642
|
||||||
Ref: #chart63755
|
Ref: #chart63761
|
||||||
Node: check63826
|
Node: check63832
|
||||||
Ref: #check63950
|
Ref: #check63956
|
||||||
Node: check-dates64017
|
Node: check-dates64023
|
||||||
Ref: #check-dates64153
|
Ref: #check-dates64159
|
||||||
Node: dupes64226
|
Node: dupes64232
|
||||||
Ref: #dupes64351
|
Ref: #dupes64357
|
||||||
Node: equity64422
|
Node: equity64428
|
||||||
Ref: #equity64544
|
Ref: #equity64550
|
||||||
Node: prices64663
|
Node: prices64669
|
||||||
Ref: #prices64792
|
Ref: #prices64798
|
||||||
Node: print-unique64847
|
Node: print-unique64853
|
||||||
Ref: #print-unique64996
|
Ref: #print-unique65002
|
||||||
Node: register-match65089
|
Node: register-match65095
|
||||||
Ref: #register-match65245
|
Ref: #register-match65251
|
||||||
Node: rewrite65343
|
Node: rewrite65349
|
||||||
Ref: #rewrite65464
|
Ref: #rewrite65470
|
||||||
Node: TROUBLESHOOTING65542
|
Node: TROUBLESHOOTING65548
|
||||||
Ref: #troubleshooting65661
|
Ref: #troubleshooting65667
|
||||||
Node: Run-time problems65715
|
Node: Run-time problems65721
|
||||||
Ref: #run-time-problems65858
|
Ref: #run-time-problems65864
|
||||||
Node: Known limitations67805
|
Node: Known limitations67811
|
||||||
Ref: #known-limitations67948
|
Ref: #known-limitations67954
|
||||||
|
|
||||||
End Tag Table
|
End Tag Table
|
||||||
|
|||||||
@ -1320,7 +1320,7 @@ COMMANDS
|
|||||||
print
|
print
|
||||||
Show transactions from the journal.
|
Show transactions from the journal.
|
||||||
|
|
||||||
--explicit
|
-x --explicit
|
||||||
show all amounts explicitly
|
show all amounts explicitly
|
||||||
|
|
||||||
-m STR --match=STR
|
-m STR --match=STR
|
||||||
@ -1365,12 +1365,12 @@ COMMANDS
|
|||||||
|
|
||||||
Normally, transactions' implicit/explicit amount style is preserved:
|
Normally, transactions' implicit/explicit amount style is preserved:
|
||||||
when an amount is omitted in the journal, it will be omitted in the
|
when an amount is omitted in the journal, it will be omitted in the
|
||||||
output. You can use the --explicit flag to make all amounts explicit,
|
output. You can use the -x/--explicit flag to make all amounts
|
||||||
which can be useful for troubleshooting or for making your journal more
|
explicit, which can be useful for troubleshooting or for making your
|
||||||
readable and robust against data entry errors. Note, in this mode
|
journal more readable and robust against data entry errors. Note, in
|
||||||
postings with a multi-commodity amount (possible with an implicit
|
this mode postings with a multi-commodity amount (possible with an
|
||||||
amount in a multi-commodity transaction) will be split into multiple
|
implicit amount in a multi-commodity transaction) will be split into
|
||||||
single-commodity postings, for valid journal output.
|
multiple single-commodity postings, for valid journal output.
|
||||||
|
|
||||||
With -B/--cost, amounts with transaction prices are converted to cost
|
With -B/--cost, amounts with transaction prices are converted to cost
|
||||||
(using the transaction price).
|
(using the transaction price).
|
||||||
|
|||||||
@ -33,8 +33,8 @@ hledger -f- balance
|
|||||||
0
|
0
|
||||||
>>>=0
|
>>>=0
|
||||||
|
|
||||||
# 4. autobalance with prices
|
# 4. autobalance with prices, using short form of --explicit this time
|
||||||
hledger -f- print --explicit
|
hledger -f- print -x
|
||||||
<<<
|
<<<
|
||||||
2016/1/1
|
2016/1/1
|
||||||
saving-card $-105
|
saving-card $-105
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user