From 66757b43bb48d52e4fb92d38e9a893ab40d1d63e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 23 Feb 2017 17:31:32 +0100 Subject: Allow to specify implied platforms in command line; fix parsing of platforms specified in command line --- runners/cli/src/main/kotlin/cli/main.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (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 f41e4715..58bca522 100644 --- a/runners/cli/src/main/kotlin/cli/main.kt +++ b/runners/cli/src/main/kotlin/cli/main.kt @@ -44,6 +44,9 @@ class DokkaArguments { @set:Argument(value = "jdkVersion", description = "Version of JDK to use for linking to JDK JavaDoc") var jdkVersion: Int = 6 + + @set:Argument(value = "impliedPlatforms", description = "List of implied platforms (comma-separated)") + var impliedPlatforms: String = "" } @@ -72,7 +75,8 @@ object MainKt { arguments.outputDir.let { if (it.endsWith('/')) it else it + '/' }, arguments.outputFormat, skipDeprecated = arguments.nodeprecated, - sourceLinks = sourceLinks + sourceLinks = sourceLinks, + impliedPlatforms = arguments.impliedPlatforms.split(',') ) val generator = DokkaGenerator( -- cgit