diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-11 22:43:57 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-11 22:43:57 -0500 |
commit | 81259255d6b6bf3d1ef9c3aaadbeae47457f175d (patch) | |
tree | f72081940d0c3adf0cabfe76e79fca2ee767a143 /stage2/Lib.scala | |
parent | 984a5f1f0f27d191695feeb3410968f2f35f8fc8 (diff) | |
download | cbt-81259255d6b6bf3d1ef9c3aaadbeae47457f175d.tar.gz cbt-81259255d6b6bf3d1ef9c3aaadbeae47457f175d.tar.bz2 cbt-81259255d6b6bf3d1ef9c3aaadbeae47457f175d.zip |
only exit with fail if task not found, not if nothing was given
Diffstat (limited to 'stage2/Lib.scala')
-rw-r--r-- | stage2/Lib.scala | 6 |
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) + } } } } |