From f96dcb1ebdf8ccc8847718d62fd6e0cf00f33b7d Mon Sep 17 00:00:00 2001 From: rforstner Date: Thu, 20 Jan 2022 19:11:17 +0100 Subject: [PATCH] adding new script --- createReport_.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):