We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f3f884 + fd7e2c0 commit 07bd44dCopy full SHA for 07bd44d
1 file changed
codeflash/main.py
@@ -22,6 +22,13 @@
22
23
def main() -> None:
24
"""Entry point for the codeflash command-line interface."""
25
+ # Fast path: --version exits before importing the full stack
26
+ if len(sys.argv) == 2 and sys.argv[1] == "--version":
27
+ from codeflash.version import __version__
28
+
29
+ print(f"Codeflash version {__version__}")
30
+ return
31
32
from pathlib import Path
33
34
from codeflash.cli_cmds.cli import parse_args, process_pyproject_config
0 commit comments