Package net.sourceforge.argparse4j.inf
Interface MutuallyExclusiveGroup
-
- All Known Implementing Classes:
ArgumentGroupImpl
public interface MutuallyExclusiveGroup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Argument
addArgument(java.lang.String... nameOrFlags)
Creates newArgument
and adds it to the underlining parser and returns it.MutuallyExclusiveGroup
description(java.lang.String description)
Sets description to customize help message of this group.MutuallyExclusiveGroup
required(boolean required)
Iftrue
is given, one of the arguments in this group must be specified otherwise error will be issued.
-
-
-
Method Detail
-
description
MutuallyExclusiveGroup description(java.lang.String description)
Sets description to customize help message of this group.- Parameters:
description
- The description of this group.- Returns:
- this
-
addArgument
Argument addArgument(java.lang.String... nameOrFlags)
Creates new
Argument
and adds it to the underlining parser and returns it.See
ArgumentParser.addArgument(String...)
for details.
-
required
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
.- Parameters:
required
-true
orfalse
- Returns:
- this
-
-