From 200085d7f050fba4d2e5fb384a1d74e6bc4d022e Mon Sep 17 00:00:00 2001 From: Arvind Date: Thu, 9 Jan 2014 21:10:04 +0530 Subject: [PATCH] * report.py: Fixing typo and adding some documentation about options for the script. --- report.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/report.py b/report.py index ce9c3de..73e1055 100644 --- a/report.py +++ b/report.py @@ -2,11 +2,14 @@ import argparse 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() -- 1.7.10.4