Skip to content
Rogach edited this page Jan 12, 2013 · 5 revisions

Scallop is a simple (yet powerful) command-line arguments parsing library for Scala.

The library is cross-built for all scala 2.9.x and 2.10 versions.

Scallop supports:

  • flag, single-value and multiple value options
  • POSIX-style short option names (-a) with grouping (-abc)
  • GNU-style long option names (--opt)
  • Property arguments (-Dkey=value, -D key1=value key2=value)
  • Non-string types of options and properties values (with extendable converters)
  • Mutually exclusive and codependent option relationships
  • Powerful matching on trailing args
  • Subcommands

Contents

Misc

For more examles, you can look at Scallop's test suite or consult the API docs.

Also, I wrote a blog post and another one about Scallop.