diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-23 17:31:32 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-23 17:31:32 +0100 |
commit | 66757b43bb48d52e4fb92d38e9a893ab40d1d63e (patch) | |
tree | 21609ebad56aaf8d706a3bc54eb19280894c2674 /core | |
parent | 0e35c83f3b1cca083516c4276b1d4e71638c664e (diff) | |
download | dokka-66757b43bb48d52e4fb92d38e9a893ab40d1d63e.tar.gz dokka-66757b43bb48d52e4fb92d38e9a893ab40d1d63e.tar.bz2 dokka-66757b43bb48d52e4fb92d38e9a893ab40d1d63e.zip |
Allow to specify implied platforms in command line; fix parsing of platforms specified in command line
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/DokkaBootstrapImpl.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/DokkaBootstrapImpl.kt b/core/src/main/kotlin/DokkaBootstrapImpl.kt index 59139263..5f3fc7b3 100644 --- a/core/src/main/kotlin/DokkaBootstrapImpl.kt +++ b/core/src/main/kotlin/DokkaBootstrapImpl.kt @@ -12,7 +12,7 @@ fun parseSourceLinkDefinition(srcLink: String): SourceLinkDefinition { fun parseSourceRoot(sourceRoot: String): SourceRoot { val components = sourceRoot.split("::", limit = 2) - return SourceRoot(components.first(), components.getOrNull(1)?.split(',').orEmpty()) + return SourceRoot(components.last(), if (components.size == 1) listOf() else components[0].split(',')) } class DokkaBootstrapImpl : DokkaBootstrap { |