diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-06-09 13:40:03 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-06-15 19:17:11 +0200 |
commit | ee425e0b1e39245f5e1106bbb0888e557e6fbfcd (patch) | |
tree | 4348359dc6c95129d33d2468ec3be86e4a95491e /runners/cli | |
parent | bae2c8de63baf0c0b627a17ae179400fbc3c5be9 (diff) | |
download | dokka-ee425e0b1e39245f5e1106bbb0888e557e6fbfcd.tar.gz dokka-ee425e0b1e39245f5e1106bbb0888e557e6fbfcd.tar.bz2 dokka-ee425e0b1e39245f5e1106bbb0888e557e6fbfcd.zip |
Implement "failOnWarning" option
Diffstat (limited to 'runners/cli')
-rw-r--r-- | runners/cli/src/main/kotlin/cli/main.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt index d217f83e..2ef08c2e 100644 --- a/runners/cli/src/main/kotlin/cli/main.kt +++ b/runners/cli/src/main/kotlin/cli/main.kt @@ -46,6 +46,10 @@ open class GlobalArguments(parser: DokkaArgumentsParser) : DokkaConfiguration { "Offline mode (do not download package lists from the Internet)" ) + override val failOnWarning: Boolean by parser.singleFlag( + listOf("-failOnWarning"), "Fail dokka task if at least one warning was reported" + ) + override val passesConfigurations: List<Arguments> by parser.repeatableFlag( listOf("-pass"), "Single dokka pass" |