Skip to content

Commit

Permalink
makes sure that --repository flag overrides config.yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraschauer committed Jun 24, 2024
1 parent 3660d9c commit 34826ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prospector/util/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ def get_configuration(argv):
sys.exit(
"No configuration file found, or error in configuration file. Check logs."
)
# --repository in CL overrides config.yaml settings for LLM usage
if args.repository:
conf.llm_service.use_llm_repository_url = False
try:
config = Config(
vuln_id=args.vuln_id,
Expand Down

0 comments on commit 34826ea

Please sign in to comment.