From 3e0229fc052d725bb36f3100665cb51831844abf Mon Sep 17 00:00:00 2001 From: Marc Jasper Date: Mon, 16 Mar 2026 17:42:25 +0100 Subject: [PATCH] SCANPY-234 Improved help message when invoked without parameters. --- src/pysonar_scanner/exceptions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)"