# Basic optimization (creates PR)codeflash --file src/utils.py --function calculate_metrics# Local optimization only (no PR)codeflash --file src/utils.py --function calculate_metrics --no-pr# With verbose outputcodeflash --file src/utils.py --function calculate_metrics --no-pr --verbose
Copy
# Basic optimization (creates PR)codeflash --file src\utils.py --function calculate_metrics# Local optimization only (no PR)codeflash --file src\utils.py --function calculate_metrics --no-pr# With verbose outputcodeflash --file src\utils.py --function calculate_metrics --no-pr --verbose
Important: The file must be within your configured module-root
directory. Files outside module-root will be ignored with βFunctions outside
module-rootβ message.
# With benchmarks-root flagcodeflash --file src/core.py --benchmark --benchmarks-root tests/benchmarks --no-pr# If benchmarks-root is in pyproject.tomlcodeflash --file src/core.py --benchmark --no-pr
Copy
# With benchmarks-root flagcodeflash --file src\core.py --benchmark --benchmarks-root tests\benchmarks --no-pr# If benchmarks-root is in pyproject.tomlcodeflash --file src\core.py --benchmark --no-pr
The --benchmarks-root directory must exist and be configured either via
pyproject.toml or the command-line flag.