aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,