aboutsummaryrefslogtreecommitdiff
path: root/ledger.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xledger.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/ledger.py b/ledger.py
index 61eb6a5..a224591 100755
--- a/ledger.py
+++ b/ledger.py
@@ -1,11 +1,18 @@
#!/usr/bin/env python3
from utils.args import get_arguments, test_args
+from utils.read_file import read_ledger
def main():
args = get_arguments()
test_args(args)
- print(args)
+ if args.files:
+ for file in args.files:
+ result = read_ledger(file)
+
+ if args.verb == 'print':
+ for ent in result:
+ print(ent)
if __name__ == '__main__':