Skip to content

fix(bean_format): fix bean_format for beancount v3#297

Merged
mochaaP merged 1 commit intonvimtools:mainfrom
stasjok:fix-bean-format
Sep 4, 2025
Merged

fix(bean_format): fix bean_format for beancount v3#297
mochaaP merged 1 commit intonvimtools:mainfrom
stasjok:fix-bean-format

Conversation

@stasjok
Copy link
Copy Markdown
Contributor

@stasjok stasjok commented Aug 31, 2025

bean-format from beancount v3 requires '-' argument to read from stdin.
beancount v2 works both ways.

$ bean-format --version
Beancount 3.1.0

$ bean-format <ledger.beancount
Usage: bean-format [OPTIONS] FILENAME
Try 'bean-format --help' for help.

Error: Missing argument 'FILENAME'.

With '-' both version works:

$ bean-format --version
Beancount 2.3.6
$ bean-format - <ledger.beancount
;; -*- mode: org; mode: beancount; -*-
...

$ bean-format --version
Beancount 3.1.0
$ bean-format - <ledger.beancount
;; -*- mode: org; mode: beancount; -*-
...

bean-format from beancount v3 requires '-' to read from stdin.
beancount v2 works both ways.
@mochaaP mochaaP merged commit 0ddb038 into nvimtools:main Sep 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants