#!/usr/bin/env python import argparse from stamper import Stamper if __name__ == '__main__': parser = argparse.ArgumentParser( description='stamps: show recorded times information') parser.add_argument('customer', action="store", nargs='?', help='Show times only for this customer') parser.add_argument('filter', action="store", nargs='?', help='Filter the times by date range') parser.add_argument('-v', '--verbose', action="store_true", help='Include detailed times information') parser.add_argument('-s', '--sum', action="store_true", help='Include sum of times') args = parser.parse_args() s = Stamper() s.load_stamps() s.show_stamps(args.customer, args.filter, args.verbose, args.sum)