This commit is contained in:
Ashwin Bharambe 2025-02-06 16:54:31 -08:00
parent 4f3c19114c
commit e23213ee8a

View file

@ -291,12 +291,13 @@ def main():
help="Path to SSL certificate file for HTTPS", help="Path to SSL certificate file for HTTPS",
) )
args = parser.parse_args()
if args.ssl_keyfile and not args.ssl_certfile: if args.ssl_keyfile and not args.ssl_certfile:
parser.error("You must provide both --ssl-keyfile and --ssl-certfile when using HTTPS") parser.error("You must provide both --ssl-keyfile and --ssl-certfile when using HTTPS")
if args.ssl_certfile and not args.ssl_keyfile: if args.ssl_certfile and not args.ssl_keyfile:
parser.error("You must provide both --ssl-keyfile and --ssl-certfile when using HTTPS") parser.error("You must provide both --ssl-keyfile and --ssl-certfile when using HTTPS")
args = parser.parse_args()
if args.env: if args.env:
for env_pair in args.env: for env_pair in args.env:
try: try: