Closed jastice closed 11 years ago
Thanks for noticing this. The correct syntax is:
sbt "run-main mypackage.myapp.WordCount input-files output"
I did try that, and it starts, but still only passes a single argument. For instance when running
> sbt "run-main com.clueda.finance.semarunner.ScoobiExample inputfile outputfile"
a println(args)
will only show: ArrayBuffer(inputfile)
Another minor syntax error in the example: persist(counts.toTextFile(args(1))
is missing a )
I was trying to run the Quick Start example in the form
But this will give the error:
If I run it with the regular sbt syntax for this:
... it will run, but only the first argument seems to be written to args.