diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-02-24 16:17:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 16:17:45 +0100 |
commit | cbbc62ff5e1c406037ba5a6e5c9b81f3b53d2700 (patch) | |
tree | 37cf26f8b257c7b6e5b3d0178778e19330e061f1 /runners/cli/src | |
parent | e07f411dc3c2e99acf18dfa428546804b80d30f9 (diff) | |
download | dokka-cbbc62ff5e1c406037ba5a6e5c9b81f3b53d2700.tar.gz dokka-cbbc62ff5e1c406037ba5a6e5c9b81f3b53d2700.tar.bz2 dokka-cbbc62ff5e1c406037ba5a6e5c9b81f3b53d2700.zip |
Fix parameters on cli and bump kotlinx.cli (#1755)
Diffstat (limited to 'runners/cli/src')
-rw-r--r-- | runners/cli/src/main/kotlin/cli/main.kt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt index 290950ec..1597ed56 100644 --- a/runners/cli/src/main/kotlin/cli/main.kt +++ b/runners/cli/src/main/kotlin/cli/main.kt @@ -56,12 +56,12 @@ class GlobalArguments(args: Array<String>) : DokkaConfiguration { override val offlineMode by parser.option( ArgType.Boolean, - "Offline mode (do not download package lists from the Internet)" + description = "Offline mode (do not download package lists from the Internet)" ).default(DokkaDefaults.offlineMode) override val failOnWarning by parser.option( ArgType.Boolean, - "Throw an exception if the generation exited with warnings" + description = "Throw an exception if the generation exited with warnings" ).default(DokkaDefaults.failOnWarning) override val delayTemplateSubstitution by parser.option( @@ -166,10 +166,12 @@ private fun parseSourceSet(moduleName: String, args: Array<String>): DokkaConfig val reportUndocumented by parser.option(ArgType.Boolean, description = "Report undocumented members") .default(DokkaDefaults.reportUndocumented) - val skipEmptyPackages by parser.option( + val noSkipEmptyPackages by parser.option( ArgType.Boolean, - description = "Do not create index pages for empty packages" - ).default(DokkaDefaults.skipEmptyPackages) + description = "Create index pages for empty packages" + ).default(!DokkaDefaults.skipEmptyPackages) + + val skipEmptyPackages by lazy { !noSkipEmptyPackages } val skipDeprecated by parser.option(ArgType.Boolean, description = "Do not output deprecated members") .default(DokkaDefaults.skipDeprecated) |