Long:`The step executes the [sonar-scanner](https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner) cli command to scan the defined sources and publish the results to a SonarQube instance.`,
cmd.Flags().StringVar(&stepConfig.Instance,"instance",`SonarCloud`,"Jenkins only: The name of the SonarQube instance defined in the Jenkins settings. DEPRECATED: use serverUrl parameter instead")
cmd.Flags().StringVar(&stepConfig.ServerURL,"serverUrl",os.Getenv("PIPER_serverUrl"),"The URL to the Sonar backend.")
cmd.Flags().StringVar(&stepConfig.Token,"token",os.Getenv("PIPER_token"),"Token used to authenticate with the Sonar Server.")
cmd.Flags().StringVar(&stepConfig.Organization,"organization",os.Getenv("PIPER_organization"),"SonarCloud.io only: Organization that the project will be assigned to in SonarCloud.io.")
cmd.Flags().StringSliceVar(&stepConfig.CustomTLSCertificateLinks,"customTlsCertificateLinks",[]string{},"List of download links to custom TLS certificates. This is required to ensure trusted connections to instances with custom certificates.")
cmd.Flags().StringVar(&stepConfig.SonarScannerDownloadURL,"sonarScannerDownloadUrl",`https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.4.0.2170-linux.zip`,"URL to the sonar-scanner-cli archive.")
cmd.Flags().StringVar(&stepConfig.ProjectVersion,"projectVersion",os.Getenv("PIPER_projectVersion"),"The project version that is reported to SonarQube.")
cmd.Flags().StringVar(&stepConfig.ProjectKey,"projectKey",os.Getenv("PIPER_projectKey"),"The project key identifies the project in SonarQube.")
cmd.Flags().StringSliceVar(&stepConfig.CoverageExclusions,"coverageExclusions",[]string{},"A list of patterns that should be excluded from the coverage scan.")
cmd.Flags().BoolVar(&stepConfig.InferJavaBinaries,"inferJavaBinaries",false,"Find the location of generated Java class files in all modules and pass the option `sonar.java.binaries to the sonar tool.")
cmd.Flags().BoolVar(&stepConfig.InferJavaLibraries,"inferJavaLibraries",false,"If the parameter `m2Path` is configured for the step `mavenExecute` in the general section of the configuration, pass it as option `sonar.java.libraries` to the sonar tool.")
cmd.Flags().StringSliceVar(&stepConfig.Options,"options",[]string{},"A list of options which are passed to the sonar-scanner.")
cmd.Flags().StringVar(&stepConfig.BranchName,"branchName",os.Getenv("PIPER_branchName"),"Non-Pull-Request only: Name of the SonarQube branch that should be used to report findings to.")
cmd.Flags().BoolVar(&stepConfig.InferBranchName,"inferBranchName",false,"Jenkins only: Whether to infer the `branchName` parameter automatically based on the `BRANCH_NAME` environment variable in non-productive runs of the pipeline.")
cmd.Flags().StringVar(&stepConfig.ChangeID,"changeId",os.Getenv("PIPER_changeId"),"Pull-Request only: The id of the pull-request.")
cmd.Flags().StringVar(&stepConfig.ChangeBranch,"changeBranch",os.Getenv("PIPER_changeBranch"),"Pull-Request only: The name of the pull-request branch.")
cmd.Flags().StringVar(&stepConfig.ChangeTarget,"changeTarget",os.Getenv("PIPER_changeTarget"),"Pull-Request only: The name of the base branch.")
cmd.Flags().StringVar(&stepConfig.Owner,"owner",os.Getenv("PIPER_owner"),"Pull-Request only: The owner of the scm repository.")
cmd.Flags().StringVar(&stepConfig.Repository,"repository",os.Getenv("PIPER_repository"),"Pull-Request only: The scm repository.")
cmd.Flags().StringVar(&stepConfig.GithubToken,"githubToken",os.Getenv("PIPER_githubToken"),"Pull-Request only: Token for Github to set status on the Pull-Request.")
cmd.Flags().BoolVar(&stepConfig.DisableInlineComments,"disableInlineComments",false,"Pull-Request only: Disables the pull-request decoration with inline comments. DEPRECATED: only supported in SonarQube < 7.2")
cmd.Flags().BoolVar(&stepConfig.LegacyPRHandling,"legacyPRHandling",false,"Pull-Request only: Activates the pull-request handling using the [GitHub Plugin](https://docs.sonarqube.org/display/PLUG/GitHub+Plugin). DEPRECATED: only supported in SonarQube < 7.2")
cmd.Flags().StringVar(&stepConfig.GithubAPIURL,"githubApiUrl",`https://api.github.com`,"Pull-Request only: The URL to the Github API. See [GitHub plugin docs](https://docs.sonarqube.org/display/PLUG/GitHub+Plugin#GitHubPlugin-Usage) DEPRECATED: only supported in SonarQube < 7.2")
cmd.Flags().StringVar(&stepConfig.M2Path,"m2Path",os.Getenv("PIPER_m2Path"),"Path to the location of the local repository that should be used.")