aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-06-18 15:22:15 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-06-18 15:34:36 +0200
commit442a4651880ec2018728f64028c627776d000e9a (patch)
tree79e841a1af6b0b359ae8c3d1c7cd0852e0e79227 /core/src
parentb1520f0a45e5102f77a43dd20746a3db047bbcf4 (diff)
downloaddokka-442a4651880ec2018728f64028c627776d000e9a.tar.gz
dokka-442a4651880ec2018728f64028c627776d000e9a.tar.bz2
dokka-442a4651880ec2018728f64028c627776d000e9a.zip
Remove support for old argument names
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/DokkaBootstrapImpl.kt8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/src/main/kotlin/DokkaBootstrapImpl.kt b/core/src/main/kotlin/DokkaBootstrapImpl.kt
index 32248163..94792303 100644
--- a/core/src/main/kotlin/DokkaBootstrapImpl.kt
+++ b/core/src/main/kotlin/DokkaBootstrapImpl.kt
@@ -17,19 +17,17 @@ fun parsePerPackageOptions(args: List<String>): List<PackageOptions> = args.map
val args = it.subList(1, it.size)
- val deprecated = args.find { it.endsWith("deprecated") }?.startsWith("+")
- ?: args.find { it.endsWith("skipDeprecated") }?.startsWith("+")
+ val deprecated = args.find { it.endsWith("skipDeprecated") }?.startsWith("+")
?: DokkaDefaults.skipDeprecated
val reportUndocumented = args.find { it.endsWith("reportUndocumented") }?.startsWith("+")
?: DokkaDefaults.reportUndocumented
- val privateApi = args.find { it.endsWith("privateApi") }?.startsWith("+")
- ?: args.find { it.endsWith("includeNonPublic") }?.startsWith("+")
+ val privateApi = args.find { it.endsWith("includeNonPublic") }?.startsWith("+")
?: DokkaDefaults.includeNonPublic
val suppress = args.find { it.endsWith("suppress") }?.startsWith("+")
- ?:DokkaDefaults.suppress
+ ?: DokkaDefaults.suppress
PackageOptionsImpl(
prefix,