You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing a negative value to ledger#entry such as 2024-12-04 employer income -500 checking you get an error Illegal option -5 because vim-ledger doesn't escape the parameters to ledger entry.
(Note: Yes, I know that in most cases if you organize your transactions such that you reverse the accounts you don't have to specify a negative value. But for some of my work it is clearer to provide negative values to some entries.)
This can be fixed by adding -- to the command line run before entry so that the rest of the arguments are not treated as possible options.
The text was updated successfully, but these errors were encountered:
adamipc
added a commit
to adamipc/vim-ledger
that referenced
this issue
Dec 4, 2024
PRs welcome. I use hledger not ledger so I don't use this particular command and it's hard to test, but if you get it working for yourself please do send a PR and I'll facilitate getting it put in.
When passing a negative value to ledger#entry such as
2024-12-04 employer income -500 checking
you get an errorIllegal option -5
because vim-ledger doesn't escape the parameters toledger entry
.Example:
(Note: Yes, I know that in most cases if you organize your transactions such that you reverse the accounts you don't have to specify a negative value. But for some of my work it is clearer to provide negative values to some entries.)
This can be fixed by adding
--
to the command line run beforeentry
so that the rest of the arguments are not treated as possible options.The text was updated successfully, but these errors were encountered: