Skip to content

Commit

Permalink
Improve sonarimport help (#2717)
Browse files Browse the repository at this point in the history
* improve sonarimport help message in cli #357

* add changelog entry #357

* fix changelog entry #357

* fix help message example command #357
  • Loading branch information
IhsenBouallegue committed Mar 18, 2022
1 parent ac59097 commit 3eab61d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/)

### Changed

- Improve sonarimport help message [#2717](https://github.com/MaibornWolff/codecharta/pull/2717)
- Remove blacklist entry on click of name as well [#2712](https://github.com/MaibornWolff/codecharta/pull/2712)

## [1.93.0] - 2022-03-14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ class SonarImporterMain(
private val error: PrintStream = System.err
) : Callable<Void> {

@CommandLine.Option(names = ["-h", "--help"], usageHelp = true, description = ["displays this help and exits"])
@CommandLine.Option(names = ["-h", "--help"], usageHelp = true, description = [
"Please locate:\n" +
"- sonar.host.url=https://sonar.foo\n" +
"- sonar.login=c123d456\n" +
"- sonar.projectKey=de.foo:bar\n" +
"That you use to upload your code to sonar.\n" +
"Then execute [sonarimport https://sonar.foo de.foo:bar -u c123d456]"])
private var help = false

@CommandLine.Parameters(index = "0", paramLabel = "URL", description = ["url of sonarqube server"])
Expand Down

0 comments on commit 3eab61d

Please sign in to comment.