diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-26 22:48:13 +0800 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-27 18:44:53 +0800 |
commit | f9ba2e5798fac11acc2991a69b0c7d579ea631d6 (patch) | |
tree | 7b2b7d26854fd38ff2e6028d5ce584d3ea76bb2f /stage2/ToolsTasks.scala | |
parent | cbe11911183ccf077975d7f3851c664d38ecdd94 (diff) | |
download | cbt-f9ba2e5798fac11acc2991a69b0c7d579ea631d6.tar.gz cbt-f9ba2e5798fac11acc2991a69b0c7d579ea631d6.tar.bz2 cbt-f9ba2e5798fac11acc2991a69b0c7d579ea631d6.zip |
use .apply feature instead of special coding for tools usage string
Diffstat (limited to 'stage2/ToolsTasks.scala')
-rw-r--r-- | stage2/ToolsTasks.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stage2/ToolsTasks.scala b/stage2/ToolsTasks.scala index 0cfd501..b5e94d4 100644 --- a/stage2/ToolsTasks.scala +++ b/stage2/ToolsTasks.scala @@ -10,6 +10,8 @@ class ToolsTasks( cbtHome: File, cbtLastModified: Long )(implicit classLoaderCache: ClassLoaderCache){ + def apply: String = "Available methods: " ++ lib.taskNames(getClass).mkString(" ") + private val paths = CbtPaths(cbtHome, cache) import paths._ implicit val logger: Logger = lib.logger |