diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-06-07 16:15:17 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-06-07 16:15:17 +0300 |
commit | 6ca62b8b7b0bbe5df26e7e66b827926f9b1417d3 (patch) | |
tree | 5ecf01b528224533b4023e3da0eb4caa0b615422 /runners/cli/src | |
parent | c2a2294c6cb77395677f08248d4c1b8a711c2053 (diff) | |
download | dokka-6ca62b8b7b0bbe5df26e7e66b827926f9b1417d3.tar.gz dokka-6ca62b8b7b0bbe5df26e7e66b827926f9b1417d3.tar.bz2 dokka-6ca62b8b7b0bbe5df26e7e66b827926f9b1417d3.zip |
Make package-list caching optional
Diffstat (limited to 'runners/cli/src')
-rw-r--r-- | runners/cli/src/main/kotlin/cli/main.kt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt index 9a852b5a..70336b9e 100644 --- a/runners/cli/src/main/kotlin/cli/main.kt +++ b/runners/cli/src/main/kotlin/cli/main.kt @@ -58,8 +58,11 @@ class DokkaArguments { @set:Argument(value = "links", description = "External documentation links in format url^packageListUrl^^url2...") var links: String = "" - @set: Argument(value = "noStdlibLink", description = "Disable documentation link to stdlib") + @set:Argument(value = "noStdlibLink", description = "Disable documentation link to stdlib") var noStdlibLink: Boolean = false + + @set:Argument(value = "cacheRoot", description = "Path to cache folder, or 'default' to use ~/.cache/dokka, if not provided caching is disabled") + var cacheRoot: String? = null } @@ -112,7 +115,8 @@ object MainKt { perPackageOptions = parsePerPackageOptions(arguments.packageOptions), jdkVersion = arguments.jdkVersion, externalDocumentationLinks = parseLinks(arguments.links), - noStdlibLink = arguments.noStdlibLink + noStdlibLink = arguments.noStdlibLink, + cacheRoot = arguments.cacheRoot ) val generator = DokkaGenerator( |