Class AppendConstArgumentAction

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

public class AppendConstArgumentAction extends Object implements ArgumentAction

Argument action to store a list.

This action appends the value specified by Argument.setConst(Object) to the list. (Note that the const value defaults to null.) The list is of type List. This action is typically useful when multiple arguments need to store constants to the same list. If attrs contains non-List object for key Argument.getDest(), it will be overwritten by the List containing value. consumeArgument() always returns false.

  • Constructor Details

    • AppendConstArgumentAction

      public AppendConstArgumentAction()
  • Method Details