adding new script

master
rforstner 2022-01-20 19:11:17 +01:00
parent b7d4ee80bd
commit f96dcb1ebd
1 changed files with 2 additions and 2 deletions

View File

@ -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):