]> git.parisson.com Git - telecaster-server.git/commitdiff
minimize args
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 9 Jun 2025 08:17:53 +0000 (10:17 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 9 Jun 2025 08:17:53 +0000 (10:17 +0200)
bin/streaming/telecaster.py

index 9047a3f852a5ef6994c5b5601e2f54e0ed484547..f30c4e71dac4cc87cf6b0f35583ce4dc586f4bf8 100755 (executable)
@@ -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