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.
|
org.refcodes.console.impls |
Implementations:
The
impls package contains implementations of the types defined
by this artifact. |
Modifier and Type | Method and Description |
---|---|
static Switch |
ConsoleSugar.forcesSwitch(String aDescription) |
static Switch |
ConsoleSugar.helpSwitch(String aDescription) |
static Switch |
ConsoleSugar.quietSwitch(String aDescription) |
static Switch |
ConsoleSugar.switsh(String aShortOption,
String aLongOption,
String aDescription) |
static Switch |
ConsoleSugar.verboseSwitch(String aDescription) |
Modifier and Type | Class and Description |
---|---|
class |
ForceSwitchImpl
A predefined force switch.
|
class |
HelpSwitchImpl
A predefined help switch.
|
class |
QuietSwitchImpl
A predefined "be quiet" switch.
|
class |
SwitchImpl |
class |
VerboseSwitchImpl
A predefined verbose switch.
|
Copyright © 2016. All rights reserved.