aboutsummaryrefslogblamecommitdiff
path: root/ledger.py
blob: a2245914e33fae0fa9cde3fe517501985055ae5f (plain) (tree)
1
2
3
4
5
6
7
8

                                               
                                       




                          






                                      



                          
#!/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)

    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__':
    main()