move command-line parser to CommandLine.scala