
net.sourceforge.argparse4j.inf.ArgumentContainer Maven / Gradle / Ivy
The newest version!
package net.sourceforge.argparse4j.inf;
/**
* A container to which arguments can be added.
*
* @since 0.8.0
*/
public interface ArgumentContainer {
/**
*
* Creates new {@link Argument}, adds it to this container and returns it.
*
*
* The {@code nameOrFlags} is either a single name of positional argument or
* a list of option strings for named argument, e.g. {@code foo} or
* {@code -f, --foo}.
*
*
* @param nameOrFlags
* A name or a list of option strings of new {@link Argument}.
* @return {@link Argument} object.
*/
Argument addArgument(String... nameOrFlags);
/**
* Sets the description for the arguments of this container.
*
* @param description
* The description of this container.
* @return this
*/
ArgumentContainer description(String description);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy