Class GreedyMaybeListValueOptionParser<T>

Type Parameters:
T - Command Type
All Implemented Interfaces:
OptionParser<T>

public class GreedyMaybeListValueOptionParser<T> extends MaybeListValueOptionParser<T>
A variation on the MaybeListValueOptionParser that is greedy

This primarily makes a difference when used with commands that also use Arguments or DefaultOption. If that is the case using this parser could incorrectly consume values not intended to be part of the list. Users creating CLIs should be certain that this represents the behaviour they want.

  • Constructor Details

    • GreedyMaybeListValueOptionParser

      public GreedyMaybeListValueOptionParser()
    • GreedyMaybeListValueOptionParser

      public GreedyMaybeListValueOptionParser(char separator)
  • Method Details