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