aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stage2/Lib.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala
index 924a6c0..7b07d06 100644
--- a/stage2/Lib.scala
+++ b/stage2/Lib.scala
@@ -143,7 +143,7 @@ final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{
}
class ReflectBuild(val build: Build) extends ReflectObject(build){
- def usage = {
+ def usage: String = {
val baseTasks = lib.taskNames(ru.typeOf[Build])
val thisTasks = lib.taskNames(subclassType) diff baseTasks
(
@@ -191,7 +191,9 @@ final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{
System.err.println("")
}
System.err.println(usage)
- System.exit(1)
+ taskName.foreach{ _ =>
+ System.exit(1)
+ }
}
}
}