From 9bdfc9930ef0246965440265a6a765ba9ce2f482 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 9 Jun 2021 21:10:51 +0200 Subject: [PATCH] feat: add loop delay option as cli flag --- prometheuspvesd/cli.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/prometheuspvesd/cli.py b/prometheuspvesd/cli.py index ded0180..cdc279e 100644 --- a/prometheuspvesd/cli.py +++ b/prometheuspvesd/cli.py @@ -41,6 +41,13 @@ class PrometheusSD: parser.add_argument( "-o", "--output", dest="output_file", action="store", help="output file" ) + parser.add_argument( + "-d", + "--loop-delay", + dest="loop_delay", + action="store", + help="delay between discovery runs" + ) parser.add_argument( "-v", dest="logging.level", action="append_const", const=-1, help="increase log level" )