aboutsummaryrefslogtreecommitdiff
path: root/runners/cli/src/main/kotlin
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-07 11:08:34 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-07 13:31:38 +0200
commitcb20227d354b1b74ca6784d55ea75cc8b5281abd (patch)
tree2284ff9b5535a735655a9ad0ee436f2aa4e68a07 /runners/cli/src/main/kotlin
parent72e6c72774f65308ce1da807bc0fa5798575d013 (diff)
downloaddokka-cb20227d354b1b74ca6784d55ea75cc8b5281abd.tar.gz
dokka-cb20227d354b1b74ca6784d55ea75cc8b5281abd.tar.bz2
dokka-cb20227d354b1b74ca6784d55ea75cc8b5281abd.zip
Implement simple cli integration test
Diffstat (limited to 'runners/cli/src/main/kotlin')
-rw-r--r--runners/cli/src/main/kotlin/cli/main.kt10
1 files changed, 5 insertions, 5 deletions
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<String>): 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<String>): 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<String>): 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<DokkaSourceSetID> = dependentSourceSets