How do I parse command line arguments in Scala? [closed]
For most cases you do not need an external parser. Scala’s pattern matching allows consuming args in a functional style. For example: object MmlAlnApp { val usage = “”” Usage: mmlaln [–min-size num] [–max-size num] filename “”” def main(args: Array[String]) { if (args.length == 0) println(usage) val arglist = args.toList type OptionMap = Map[Symbol, Any] … Read more