diff --git a/llama_stack/distribution/server/server.py b/llama_stack/distribution/server/server.py index 69d3e3a62..f72a8cf54 100644 --- a/llama_stack/distribution/server/server.py +++ b/llama_stack/distribution/server/server.py @@ -291,12 +291,13 @@ def main(): help="Path to SSL certificate file for HTTPS", ) + args = parser.parse_args() + if args.ssl_keyfile and not args.ssl_certfile: parser.error("You must provide both --ssl-keyfile and --ssl-certfile when using HTTPS") if args.ssl_certfile and not args.ssl_keyfile: parser.error("You must provide both --ssl-keyfile and --ssl-certfile when using HTTPS") - args = parser.parse_args() if args.env: for env_pair in args.env: try: