diff --git a/src/pysonar_scanner/exceptions.py b/src/pysonar_scanner/exceptions.py index d81cbaa2..81e53189 100644 --- a/src/pysonar_scanner/exceptions.py +++ b/src/pysonar_scanner/exceptions.py @@ -37,7 +37,8 @@ def from_missing_keys(*properties: MissingProperty) -> "MissingPropertyException missing_properties = ", ".join([f"{prop.property} ({prop.cli_arg})" for prop in properties]) fix_message = ( "You can provide these properties using one of the following methods:\n" - "- Command line arguments (e.g., --sonar.projectKey=myproject)\n" + "- Command line arguments (e.g., --sonar-project-key=myproject)\n" + "- Analysis parameters with -D prefix (e.g., -Dsonar.projectKey=myproject)\n" "- Environment variables (e.g., SONAR_PROJECTKEY=myproject)\n" "- Properties file (sonar-project.properties)\n" "- Project configuration files (e.g., build.gradle, pom.xml)"