commit 83effeb49354ff6d0dc66bee0df3c1e4167810cf
parent b7a2f098c4bb8e9578f05214fbed1023ea2b77a9
Author: Adrián Oliva <[email protected]>
Date:   Fri,  5 May 2023 08:47:19 -0600

The `--file` option is more or less completed.

The `stdin` option is left to be worked on.

Diffstat:
MREADME.md | 2+-
Mutils/read_file.py | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -14,4 +14,4 @@ over the original project. - Support for flags: - [ ] `--sort`. - [ ] `--price-db`. - - [ ] `--file`. + - [X] `--file`. diff --git a/utils/read_file.py b/utils/read_file.py @@ -87,7 +87,7 @@ def read_ledger(path: str): if line.startswith('!include'): file_path = line.split()[-1] base_dir = os.path.dirname(current_file) - files_to_read.append( + files_to_read.insert(0, os.path.join(base_dir, file_path) )