aboutsummaryrefslogtreecommitdiff
path: root/runners/cli/src/main/kotlin
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-03-05 13:14:31 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-23 09:25:36 +0100
commit2aeb60184eaea9bd2fa305f926bb0ceba9deaa48 (patch)
treed4fc8c31165f337b66a7c49e69f86783dff040a7 /runners/cli/src/main/kotlin
parent1ec41b16f609a15dc66e13c381aa4ac0ef74d07c (diff)
downloaddokka-2aeb60184eaea9bd2fa305f926bb0ceba9deaa48.tar.gz
dokka-2aeb60184eaea9bd2fa305f926bb0ceba9deaa48.tar.bz2
dokka-2aeb60184eaea9bd2fa305f926bb0ceba9deaa48.zip
Adds linking plugins in CLI
Diffstat (limited to 'runners/cli/src/main/kotlin')
-rw-r--r--runners/cli/src/main/kotlin/cli/main.kt11
1 files changed, 8 insertions, 3 deletions
diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt
index 5d7ec1f7..93902be5 100644
--- a/runners/cli/src/main/kotlin/cli/main.kt
+++ b/runners/cli/src/main/kotlin/cli/main.kt
@@ -15,9 +15,16 @@ open class GlobalArguments(parser: DokkaArgumentsParser) : DokkaConfiguration {
override val format: String by parser.stringOption(
listOf("-format"),
- "Output format (text, html, markdown, jekyll, kotlin-website)",
+ "Output format (text, html, gfm, jekyll, kotlin-website)",
"")
+ override val pluginsClasspath: List<File> by parser.repeatableOption(
+ listOf("-dokkaPlugins"),
+ "List of jars with dokka plugins"
+ ) {
+ File(it)
+ }
+
override val generateIndexPages: Boolean by parser.singleFlag(
listOf("-generateIndexPages"),
"Generate index page"
@@ -36,8 +43,6 @@ open class GlobalArguments(parser: DokkaArgumentsParser) : DokkaConfiguration {
) {
Arguments(parser)
}
-
- override var pluginsClasspath: List<File> = emptyList()
}
class Arguments(val parser: DokkaArgumentsParser) : DokkaConfiguration.PassConfiguration {