Module net.sourceforge.argparse4j
Package net.sourceforge.argparse4j.inf
Interface ArgumentContainer
-
- All Known Subinterfaces:
ArgumentGroup,ArgumentParser,MutuallyExclusiveGroup,Subparser
- All Known Implementing Classes:
ArgumentGroupImpl,ArgumentParserImpl,SubparserImpl
public interface ArgumentContainerA container to which arguments can be added.- Since:
- 0.8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArgumentaddArgument(java.lang.String... nameOrFlags)Creates newArgument, adds it to this container and returns it.ArgumentContainerdescription(java.lang.String description)Sets the description for the arguments of this container.
-
-
-
Method Detail
-
addArgument
Argument addArgument(java.lang.String... nameOrFlags)
Creates new
Argument, adds it to this container and returns it.The
nameOrFlagsis either a single name of positional argument or a list of option strings for named argument, e.g.fooor-f, --foo.
-
description
ArgumentContainer description(java.lang.String description)
Sets the description for the arguments of this container.- Parameters:
description- The description of this container.- Returns:
- this
-
-