From cb20227d354b1b74ca6784d55ea75cc8b5281abd Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Tue, 7 Jul 2020 11:08:34 +0200 Subject: Implement simple cli integration test --- runners/cli/src/main/kotlin/cli/main.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'runners/cli/src') diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt index 5e5cd6b2..d284e653 100644 --- a/runners/cli/src/main/kotlin/cli/main.kt +++ b/runners/cli/src/main/kotlin/cli/main.kt @@ -118,7 +118,7 @@ private fun parseSourceSet(args: Array): DokkaConfiguration.DokkaSourceS val moduleName by parser.option( ArgType.String, description = "Name of the documentation module", - fullName = "module" + fullName = "moduleName" ).required() val moduleDisplayName by parser.option( @@ -126,12 +126,12 @@ private fun parseSourceSet(args: Array): DokkaConfiguration.DokkaSourceS description = "Name of the documentation module" ) - val name by parser.option( + val sourceSetName by parser.option( ArgType.String, description = "Name of the source set" ).default("main") - val displayName by parser.option( + val sourceSetDisplayName by parser.option( ArgType.String, description = "Displayed name of the source set" ).default("JVM") @@ -235,8 +235,8 @@ private fun parseSourceSet(args: Array): DokkaConfiguration.DokkaSourceS return object : DokkaConfiguration.DokkaSourceSet { override val moduleDisplayName = moduleDisplayName ?: moduleName - override val displayName = displayName - override val sourceSetID = DokkaSourceSetID(moduleName, name) + override val displayName = sourceSetDisplayName + override val sourceSetID = DokkaSourceSetID(moduleName, sourceSetName) override val classpath = classpath override val sourceRoots = sourceRoots.map { SourceRootImpl(it.toAbsolutePath()) } override val dependentSourceSets: Set = dependentSourceSets -- cgit