Can custom SBT commands be written to support multi-line arguments (i.e. with new lines in them)?

23 views
Skip to first unread message

Simeon Fitch

unread,
Jul 21, 2014, 4:13:06 PM7/21/14
to simple-b...@googlegroups.com
(NB: cross posting unanswered SO entry in hopes of triggering interest)

Is it possible to write an SBT command that supports arguments with newlines in them, i.e.:

val myCmd = Command.args("my-cmd", "<args with newlines>")...

The use case is that I'd like to write a command where the user can paste a multi-line block of text that is then processed/converted into something else. It would be fine if the user had to enclose the text with quotes, braces, or whatever, but it appears that SBT attempts to parse the command immediately after a newline is encountered.

Apologies for the cross post if that's the sort of things that gets under your skin.

Thanks!

Simeon
Reply all
Reply to author
Forward
0 new messages