Skip to content

Commit

Permalink
add ssl version to -V output
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed May 10, 2024
1 parent 9a19172 commit c8379a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locust/argument_parser.py
Expand Up @@ -9,6 +9,7 @@
import os
import platform
import socket
import ssl
import sys
import tempfile
import textwrap
Expand Down Expand Up @@ -705,7 +706,7 @@ def setup_parser_arguments(parser):
"-V",
action="version",
help="Show program's version number and exit",
version=f"locust {version} from {os.path.dirname(__file__)} (python {platform.python_version()})",
version=f"locust {version} from {os.path.dirname(__file__)} (Python {platform.python_version()}, {" ".join(ssl.OPENSSL_VERSION.split(" ")[0:2])})",
)
other_group.add_argument(
"--exit-code-on-error",
Expand Down

0 comments on commit c8379a1

Please sign in to comment.