This userArgsSeq stuff is slightly strange -- why not make userArgs an ArrayBuffer directly, and then just append to it in parseArgs? ArrayBuffer is still a subclass of Seq so you can pass it outside to code that expects a Seq.