Join GitHub today
--date2 does not show the auxiliary date #604
Version: hledger-ui 1.3
Great job on your apps, very much enjoying exploring the different possibilities offered here...
I stumbled upon a little hiccup though. The manual states:
However, given the following ledger file
The following commands display the same dates:
hledger-ui -f ~/test.ledger hledger-ui -f ~/test.ledger --date2
Meaninng, for the Supermarket entry, I would expect
Thanks @benjamin-thomas. You're right, hledger-ui doesn't seem to pay much (any ?) attention to --date2.
General flags like this aren't required to have an effect on every single command. I know --date2 affects the output of the register command, but otherwise I think it mainly affects date matching. Perhaps the wording of its help could be improved.
As for making it affect hledger-ui - I would consider a PR, but I don't think it's needed. I consider --date2 and secondary dates to be a misfeature actually, and always recommend overriding posting dates instead.
Thanks for the detailed feedback!
Yes the wording is a little ambiguous, but then again there are quite a lot of features.
I'd love to dig in, but being unfamiliar with Haskell, it's not very realistic for me at the moment.
Overriding post dates seems much better, thanks!
Closing this, since it was a misunderstanding on my part.