aboutsummaryrefslogtreecommitdiff
path: root/ledger.py
diff options
context:
space:
mode:
Diffstat (limited to 'ledger.py')
-rwxr-xr-xledger.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ledger.py b/ledger.py
index d5e9b72..e98abc1 100755
--- a/ledger.py
+++ b/ledger.py
@@ -4,6 +4,7 @@ from utils.read_file import read_ledger
from utils.register import print_register
from utils.sort import sort_entries
from utils.balance import print_balance
+from utils.acc_regex import filter_accounts
def main():
args = get_arguments()
@@ -14,6 +15,9 @@ def main():
for file in args.files:
result += read_ledger(file)
+ if len(args.verb) > 1:
+ result = filter_accounts(args.verb[1:], result)
+
if args.sort:
sort_entries(result, args.sort)