package getopt
POSIX getopt(3) command line argument parser with GNU '--' extension.
- Version
1.1
Linear Supertypes
Type Members
- class getopt extends AnyRef
POSIX getopt(3) parser with GNU extension '--', but without long options.
POSIX getopt(3) parser with GNU extension '--', but without long options.
import com.filez.scala.getopt.getopt object Example extends App { protected val g = new getopt(args, "ab:c") g.options.get('b').foreach{ arg => println(s"-b arg value is $arg") } }
- Version
1.1
- Since
1.0
- Exceptions thrown
java.lang.IllegalArgumentExceptionif input parameters are invalidjava.lang.NoSuchElementExceptionif option is unknown or parameter is missing. Strict mode only.
Example: