public interface MutuallyExclusiveGroup
Modifier and Type | Method and Description |
---|---|
Argument |
addArgument(String... nameOrFlags)
Creates new
Argument and adds it to the underlining parser and
returns it. |
MutuallyExclusiveGroup |
description(String description)
Sets description to customize help message of this group.
|
MutuallyExclusiveGroup |
required(boolean required)
If
true is given, one of the arguments in this group must be
specified otherwise error will be issued. |
MutuallyExclusiveGroup description(String description)
description
- The description of this group.Argument addArgument(String... nameOrFlags)
Creates new Argument
and adds it to the underlining parser and
returns it.
See ArgumentParser.addArgument(String...)
for details.
MutuallyExclusiveGroup required(boolean required)
If true
is given, one of the arguments in this group must be
specified otherwise error will be issued.
The default value is false
.
required
- true
or false
Copyright © 2012–2017. All rights reserved.