From 63bed7cb2e47eb46772e680982c33ed3ee624c31 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Wed, 31 May 2023 13:53:07 +0200 Subject: Fix missing tab entries for module names with space (#3019) --- .../src/main/kotlin/org/jetbrains/dokka/SourceSetArgumentsParser.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runners/cli/src/main') diff --git a/runners/cli/src/main/kotlin/org/jetbrains/dokka/SourceSetArgumentsParser.kt b/runners/cli/src/main/kotlin/org/jetbrains/dokka/SourceSetArgumentsParser.kt index 49e8f2ae..120bd296 100644 --- a/runners/cli/src/main/kotlin/org/jetbrains/dokka/SourceSetArgumentsParser.kt +++ b/runners/cli/src/main/kotlin/org/jetbrains/dokka/SourceSetArgumentsParser.kt @@ -7,6 +7,12 @@ import kotlinx.cli.delimiter internal fun parseSourceSet(moduleName: String, args: Array): DokkaConfiguration.DokkaSourceSet { + if (moduleName.contains(',')) { + // To figure out why this is needed and if it is still relevant, see the comment here: + // https://github.com/Kotlin/dokka/issues/3011#issuecomment-1568620493 + throw IllegalArgumentException("Module name cannot contain commas as it is used internally as a delimiter.") + } + val parser = ArgParser("sourceSet", prefixStyle = ArgParser.OptionPrefixStyle.JVM) val sourceSetName by parser.option( -- cgit