Skip to content

Commit 06a25ce

Browse files
SCANPY-234 Fix help suggestions displayed when invoking pysonar without arguments (#299)
1 parent 9166f2f commit 06a25ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pysonar_scanner/exceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def from_missing_keys(*properties: MissingProperty) -> "MissingPropertyException
3737
missing_properties = ", ".join([f"{prop.property} ({prop.cli_arg})" for prop in properties])
3838
fix_message = (
3939
"You can provide these properties using one of the following methods:\n"
40-
"- Command line arguments (e.g., --sonar.projectKey=myproject)\n"
40+
"- Command line arguments (e.g., --sonar-project-key=myproject)\n"
41+
"- Analysis parameters with -D prefix (e.g., -Dsonar.projectKey=myproject)\n"
4142
"- Environment variables (e.g., SONAR_PROJECTKEY=myproject)\n"
4243
"- Properties file (sonar-project.properties)\n"
4344
"- Project configuration files (e.g., build.gradle, pom.xml)"

0 commit comments

Comments
 (0)