* John Lee <[email protected]> [2018-12-09 15:13]:
> OK, I think my command line is wrong, but the resulting behaviour is still 
> very odd!  Here's how I think I'm supposed to be using -X:
>     ./ledger -f my.ledger b --strict -X BLAH --date-format '%Y-%m-%d' --flat 
> 'Assets:Investments:Funds'

Yeah, I think your example is mostly user error.  Because you don't
pass an argument to -X, the
  -X --date-format '%Y-%m-%d'
is interpreted (I believe)
as -X with argument --date-format
and then option '%Y-%m-%d'.  I don't know how that is interpreted, but
the %d would match on a a tag containing "d" (like your "food" example).

>     ./ledger -f 
> /home/me/mount/b/me/gtd/reference/issues/2018/12/ledger-value-by-commodity/my.ledger
>  b -XGOOG --date-format '%Y-%m-%d'  --flat 'Assets:Investments:Funds'

I think -XGOOD means -X -G -O, but I'm not sure.

-- 
Martin Michlmayr
https://www.cyrius.com/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to