aboutsummaryrefslogtreecommitdiffstats
path: root/firefly_cli
diff options
context:
space:
mode:
Diffstat (limited to 'firefly_cli')
-rw-r--r--firefly_cli/__init__.py2
-rw-r--r--firefly_cli/commands/transaction.py7
2 files changed, 8 insertions, 1 deletions
diff --git a/firefly_cli/__init__.py b/firefly_cli/__init__.py
index b7a8764..4b170ef 100644
--- a/firefly_cli/__init__.py
+++ b/firefly_cli/__init__.py
@@ -2,4 +2,4 @@
# Copyright (C) 2026 Danilo M. <danix@danix.xyz>
# Licensed under the GNU General Public License v2.0 only.
-__version__ = "0.3.4"
+__version__ = "0.3.5"
diff --git a/firefly_cli/commands/transaction.py b/firefly_cli/commands/transaction.py
index 8d858b6..df1ffc4 100644
--- a/firefly_cli/commands/transaction.py
+++ b/firefly_cli/commands/transaction.py
@@ -54,6 +54,13 @@ def cmd_add(args, ctx):
split["category_name"] = args.category
if args.tags:
split["tags"] = [t.strip() for t in args.tags.split(",") if t.strip()]
+ if ttype == "transfer":
+ # Transfer direction is easy to reverse silently (ISSUES.md #5); echo it
+ # to stderr so the user/agent can catch a swapped --from/--to. stdout
+ # JSON unchanged; shown for both real writes and --dry-run.
+ import sys
+ print(f'transfer: {src["name"]} → {dst["name"]}, {split["amount"]}',
+ file=sys.stderr)
if args.dry_run:
# Accounts already resolved above (missing name = hard error). Write nothing.
# dry-run wins over skip-dupes: caller wants a preview, not a write.