Skip to content
Jan Christopher Vogt edited this page Sep 30, 2016 · 1 revision

FAQ

How to access command line arguments in a task?

Use context.args which is a Seq[String] containing the command line arguments you gave to the task.

cbt foo a b c d e with def foo = context.args.mkString(",") will print a,b,c,d,e.

In the future we may support typed access.

Clone this wiki locally