summaryrefslogtreecommitdiff
path: root/bin/mymerkur2ledger
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mymerkur2ledger')
-rwxr-xr-xbin/mymerkur2ledger5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/mymerkur2ledger b/bin/mymerkur2ledger
index 429f40f..e047935 100755
--- a/bin/mymerkur2ledger
+++ b/bin/mymerkur2ledger
@@ -1,4 +1,7 @@
#!/bin/sh
+rulesfile="$1"
+shift
+
csvtool -t ";" -u COMMA square "$@" \
- | hledger print --rules-file merkur.rules -f-
+ | hledger print ${rulesfile:+--rules-file "$rulesfile"} -f-