Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare command #7104

Merged
merged 5 commits into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(cli): Align help text for single-value enum options
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Jun 8, 2023
commit 6ef71c9677d71f02b9dd828621e9196527ff884c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ internal class SetDependencyRepresentationCommand : CliktCommand(

private val targetFormat by option(
"--format", "-f",
help = "The target format for the conversion."
help = "The target format for the conversion. Must be one of ${enumValues<TargetFormat>().map { it.name }}."
).enum<TargetFormat>().default(TargetFormat.GRAPH)

private val handlePlaceholders by option(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class UploadCurationsCommand : OrtCommand(

private val server by option(
"--server", "-s",
help = "The ClearlyDefined server to upload to."
help = "The ClearlyDefined server to upload to. Must be one of ${enumValues<Server>().map { it.name }}."
).enum<Server>().default(Server.DEVELOPMENT)

private val service by lazy { ClearlyDefinedService.create(server, OkHttpClientHelper.buildClient()) }
Expand Down