We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94468d4 commit e1e27e7Copy full SHA for e1e27e7
1 file changed
openviking/server/bootstrap.py
@@ -33,6 +33,15 @@ def _get_version() -> str:
33
return "unknown"
34
35
36
+def _normalize_host_arg(host: Optional[str]) -> Optional[str]:
37
+ """Normalize special CLI host values."""
38
+ if host is None:
39
+ return None
40
+ if host.strip().lower() == "all":
41
42
+ return host
43
+
44
45
def main():
46
"""Main entry point for openviking-server command."""
47
parser = argparse.ArgumentParser(
@@ -124,7 +133,7 @@ def main():
124
133
125
134
# Override with command line arguments
126
135
if args.host is not None:
127
- config.host = args.host
136
+ config.host = _normalize_host_arg(args.host)
128
137
if args.port is not None:
129
138
config.port = args.port
130
139
if args.workers is not None:
0 commit comments