address PR comments

This commit is contained in:
Alon Amid
2020-10-16 06:34:26 +00:00
parent fd4a70dfb6
commit 6eaac63e1b
3 changed files with 6 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ private[stage] object UnderscoreDelimitedConfigsAnnotation extends HasShellOptio
longOption = "legacy-configs",
toAnnotationSeq = a => {
val split = a.split(':')
assert(split.length == 2)
val packageName = split.head
val configs = split.last.split("_")
Seq(new ConfigsAnnotation(configs map { config => if (config contains ".") s"${config}" else s"${packageName}.${config}" } ))