From 269eee248d24acbb12f13ab519dfbe1c881d3bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Mon, 8 May 2023 19:22:43 -0600 Subject: First step to adding filters to accounts. --- ledger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ledger.py') diff --git a/ledger.py b/ledger.py index a418e65..d5e9b72 100755 --- a/ledger.py +++ b/ledger.py @@ -17,14 +17,14 @@ def main(): if args.sort: sort_entries(result, args.sort) - if args.verb == 'print': + if args.verb[0] == 'print': for ent in result: print(ent) - elif args.verb in ['register', 'reg', 'r']: + elif args.verb[0] in ['register', 'reg', 'r']: print_register(result) - elif args.verb in ['balance', 'bal', 'b']: + elif args.verb[0] in ['balance', 'bal', 'b']: print_balance(result) -- cgit v1.2.3