From: Guillaume Pellerin Date: Mon, 9 Jun 2025 08:17:53 +0000 (+0200) Subject: minimize args X-Git-Tag: 4.2.1~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=938a4d682c53127066df5bb8ff4effa61913285d;p=telecaster-server.git minimize args --- diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index 9047a3f..f30c4e7 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -279,9 +279,9 @@ class TeleCaster(Thread): def main(): description ="""Start a TeleCaster streaming server""" parser = argparse.ArgumentParser(description=description) - parser.add_argument("--config", help="config file", type=str) - parser.add_argument("--verbose", help="verbose", action="store_true") - parser.add_argument("--dry-run", help="dry run", action="store_true") + parser.add_argument("-c", "--config", help="config file", type=str) + parser.add_argument("-v", "--verbose", help="verbose", action="store_true") + parser.add_argument("-d", "--dry-run", help="dry run", action="store_true") args = vars(parser.parse_args()) if os.path.exists(DEFAULT_CONFIG_FILE) and not args["config"]: args['config'] = DEFAULT_CONFIG_FILE