aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/essentials/CommandLineOverrides.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/essentials/CommandLineOverrides.scala b/plugins/essentials/CommandLineOverrides.scala
index 32b8403..ce68aa9 100644
--- a/plugins/essentials/CommandLineOverrides.scala
+++ b/plugins/essentials/CommandLineOverrides.scala
@@ -1,25 +1,25 @@
package cbt
trait CommandLineOverrides extends DynamicOverrides{
def `with`: Any = {
- new lib.ReflectObject(
+ lib.callReflective(
newBuild[DynamicOverrides](
context.copy(
args = context.args.drop(2)
)
)( s"""
${context.args.lift(0).getOrElse("")}
- """ )
- ){
- def usage = ""
- }.callNullary(context.args.lift(1) orElse Some("void"))
+ """ ),
+ context.args.lift(1) orElse Some("void")
+ )
}
def eval = {
- new lib.ReflectObject(
+ lib.callReflective(
newBuild[CommandLineOverrides](
context.copy(
args = ( context.args.lift(0).map("println{ "+_+" }") ).toSeq
)
- ){""}
- ){def usage = ""}.callNullary(Some("with"))
+ ){""},
+ Some("with")
+ )
}
}