Interface ArgumentGroup

All Known Implementing Classes:
ArgumentGroupImpl

public interface ArgumentGroup
This interface defines a method to conceptually group up Argument objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    addArgument(String... nameOrFlags)
    Creates new Argument and adds it to the underlining parser and returns it.
    description(String description)
    Sets description to customize help message of this group.
  • Method Details

    • description

      ArgumentGroup description(String description)
      Sets description to customize help message of this group.
      Parameters:
      description - The description of this group.
      Returns:
      this
    • addArgument

      Argument addArgument(String... nameOrFlags)

      Creates new Argument and adds it to the underlining parser and returns it.

      See ArgumentParser.addArgument(String...) for details.

      Parameters:
      nameOrFlags - A name or a list of option strings of new Argument.
      Returns:
      Argument object.