Package | Description |
---|---|
org.refcodes.console |
Getting started:
Consider you have a tool called "foo-bar" to be invoked with the below
allowed argument combinations (syntax):
foo-bar [{ -a | -d }] -f <file>
"foo-bar" can be invoked either with an optional "-a" or with an optional
"-d" switch, but not both of them at the same time, and a file
"-f <file>" must be provided, else the passed arguments are rejected as
not being valid.
|
Modifier and Type | Class and Description |
---|---|
class |
AmbiguousArgsException
Thrown in case at least one command line argument is ambiguous regarding
expected args vs. provided args.
|
class |
ParseArgsException
Thrown in case the provided command line arguments do not respect the
required syntax or cannot be converted to the required type.
|
class |
SuperfluousArgsException
Thrown in case there were arguments found not being used (superfluous
arguments).
|
class |
UnknownArgsException
Thrown in case not one command line argument matched regarding the provided
args vs. the expected args.
|
Copyright © 2016. All rights reserved.