diff --git a/createReport_.py b/createReport_.py index 0d18e07..4af38e0 100644 --- a/createReport_.py +++ b/createReport_.py @@ -86,7 +86,7 @@ def get_daily_slice(start_date, end_date): return days -def main() -> None: +def main(): parser = argparse.ArgumentParser( usage="%(prog)s [--fromDate] [toDate] or [preSelect]", description="gather SLO in daily slices for given Timeframe" @@ -103,7 +103,7 @@ def main() -> None: "-p","--preSelect", help = "week | month - gathers the data for the last full week or month" ) - parser = initargparse() + args = parser.parse_args() if args.preSelect and (args.fromDate or args.toDate):