diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-08 19:22:43 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-08 19:22:43 -0600 |
commit | 269eee248d24acbb12f13ab519dfbe1c881d3bb8 (patch) | |
tree | 5ca12e1c9d3aade19e45776763923bb2be1218aa /ledger.py | |
parent | 8aa967f32d8e7ca6da2d759bd49f0bb4ee2021b0 (diff) | |
download | Ledger.py-269eee248d24acbb12f13ab519dfbe1c881d3bb8.tar.gz Ledger.py-269eee248d24acbb12f13ab519dfbe1c881d3bb8.zip |
First step to adding filters to accounts.
Diffstat (limited to 'ledger.py')
-rwxr-xr-x | ledger.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |