Class AppendArgumentAction

java.lang.Object
net.sourceforge.argparse4j.impl.action.AppendArgumentAction
All Implemented Interfaces:
ArgumentAction

public class AppendArgumentAction extends Object implements ArgumentAction

Argument action to store a list.

This action appends each argument value to the list. The list is of type List. This is useful to allow an option to be specified multiple times. If attrs contains non-List object for key Argument.getDest(), it will be overwritten by the List containing value. consumeArgument() always returns true.

  • Constructor Details

    • AppendArgumentAction

      public AppendArgumentAction()
  • Method Details