forked from scallop/scallop
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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
- Basic usage
- Option types and definitions
- Help information printing
- Using ScallopOption
- Arguments validation
- Exception handling
- Subcommands
- Custom converters
- Using the builder
- Notes
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.