[stage] Make config concatenation actually work
This commit is contained in:
@@ -11,7 +11,12 @@ private[stage] object UnderscoreDelimitedConfigsAnnotation extends HasShellOptio
|
|||||||
override val options = Seq(
|
override val options = Seq(
|
||||||
new ShellOption[String](
|
new ShellOption[String](
|
||||||
longOption = "legacy-configs",
|
longOption = "legacy-configs",
|
||||||
toAnnotationSeq = a => Seq(new ConfigsAnnotation(a.split("_"))),
|
toAnnotationSeq = a => {
|
||||||
|
val split = a.split('.')
|
||||||
|
val packageName = split.init.mkString(".")
|
||||||
|
val configs = split.last.split("_")
|
||||||
|
Seq(new ConfigsAnnotation(configs map { config => s"${packageName}.${config}" } ))
|
||||||
|
},
|
||||||
helpText = "A string of underscore-delimited configs (configs have decreasing precendence from left to right).",
|
helpText = "A string of underscore-delimited configs (configs have decreasing precendence from left to right).",
|
||||||
shortOption = Some("LC")
|
shortOption = Some("LC")
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user