--- a/report.py +++ b/report.py @@ -2,11 +2,14 @@ import datetime import query -parser = argparse.ArgumentParser(description='Generate report for the date specified.') +parser = argparse.ArgumentParser(description="""Generate report for the date specified. + Start and end date default to present day. + Start time defaults to 00:00:00. + End time defaults to 23:59:59.""") parser.add_argument('-s','--start-date', type=str, default=datetime.datetime.strftime(datetime.date.today(), '%Y-%m-%d'), help="Start date (YYYY-MM-DD)") parser.add_argument('-e','--end-date', type=str, default=datetime.datetime.strftime(datetime.date.today(), '%Y-%m-%d'), help="End date (YYYY-MM-DD)") parser.add_argument('-S','--start-time', type=str, default = '00:00:00', help="Start time (HH:MM:SS)") -parser.add_argument('-E','--end-time', type=str, default='23:59:59', help="Start time (HH:MM:SS)") +parser.add_argument('-E','--end-time', type=str, default='23:59:59', help="End time (HH:MM:SS)") args = parser.parse_args()