aboutsummaryrefslogtreecommitdiff
path: root/stage2/Lib.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-26 21:45:56 +0800
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-27 12:27:44 +0800
commitd023e0cf778f472af71b5ada5aa9d0f97cd5bf8b (patch)
tree4cfd9cfb8fcfe9d8efecf30f590cf4cd1126a3bb /stage2/Lib.scala
parent92e17f18965dce6ca10b00928dbae28a0ad38617 (diff)
downloadcbt-d023e0cf778f472af71b5ada5aa9d0f97cd5bf8b.tar.gz
cbt-d023e0cf778f472af71b5ada5aa9d0f97cd5bf8b.tar.bz2
cbt-d023e0cf778f472af71b5ada5aa9d0f97cd5bf8b.zip
print exit code when running cbt
hopefull this makes things clearer for users and does not get in the way. We'll see.
Diffstat (limited to 'stage2/Lib.scala')
-rw-r--r--stage2/Lib.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala
index d6c827f..0f912e9 100644
--- a/stage2/Lib.scala
+++ b/stage2/Lib.scala
@@ -178,6 +178,7 @@ final class Lib(val logger: Logger) extends Stage1Lib(logger){
case d: Dependency => lib.usage(d.getClass, d.show())
case c: ClassPath => c.string
case t:ToolsStage2.type => "Available methods: " ++ lib.taskNames(t.getClass).mkString(" ")
+ case ExitCode(int) => System.err.println(int); System.exit(int); ???
case _ => obj.toString
}
}