diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-06-18 15:22:15 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-06-18 15:34:36 +0200 |
commit | 442a4651880ec2018728f64028c627776d000e9a (patch) | |
tree | 79e841a1af6b0b359ae8c3d1c7cd0852e0e79227 | |
parent | b1520f0a45e5102f77a43dd20746a3db047bbcf4 (diff) | |
download | dokka-442a4651880ec2018728f64028c627776d000e9a.tar.gz dokka-442a4651880ec2018728f64028c627776d000e9a.tar.bz2 dokka-442a4651880ec2018728f64028c627776d000e9a.zip |
Remove support for old argument names
-rw-r--r-- | core/src/main/kotlin/DokkaBootstrapImpl.kt | 8 |
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, |