be consistent with env var names

This commit is contained in:
Abel Luck 2026-03-30 15:23:34 +02:00
parent 6fd3b598ab
commit d8f2e03d36
3 changed files with 34 additions and 5 deletions

View file

@ -34,12 +34,12 @@ def parse_args(argv: list[str] | None = None) -> tuple[str, argparse.Namespace]:
serve_parser = subparsers.add_parser("serve", help="Start the republisher web UI")
serve_parser.add_argument(
"--host",
default=os.environ.get("REPUB_HOST", "127.0.0.1"),
default=os.environ.get("REPUBLISHER_HOST", "127.0.0.1"),
help="Host interface for the web UI",
)
serve_parser.add_argument(
"--port",
default=os.environ.get("REPUB_PORT", "8080"),
default=os.environ.get("REPUBLISHER_PORT", "8080"),
help="Port for the web UI",
)
@ -72,7 +72,7 @@ def entrypoint(argv: list[str] | None = None) -> int:
try:
port = int(args.port)
except ValueError:
logger.error("Invalid REPUB_PORT/--port value: %s", args.port)
logger.error("Invalid REPUBLISHER_PORT/--port value: %s", args.port)
return 2
app = create_app()