From 442a4651880ec2018728f64028c627776d000e9a Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Thu, 18 Jun 2020 15:22:15 +0200 Subject: Remove support for old argument names --- core/src/main/kotlin/DokkaBootstrapImpl.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'core/src') 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): List = 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, -- cgit