Thrown to indicate usage errors. The calling application can catch this
exception and print the message, which will be a fully fleshed-out usage
string. For instance:
import org.clapper.argot._
...
val p = new Argot("MyProgram")
...
try {
p.parse(args)
}
catch {
case e: ArgotUsageException =>
println(e.message)
System.exit(1)
}
Linear Supertypes
ArgotException, Exception, Throwable, Serializable, AnyRef, Any
Thrown to indicate usage errors. The calling application can catch this exception and print the message, which will be a fully fleshed-out usage string. For instance: