summaryrefslogtreecommitdiff
path: root/src/main/java/com/beust/jcommander/IVariableArity.java
blob: e7499c9e183a63cce6c8f155d66778c4e976e142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.beust.jcommander;

/**
 * Must be implemented by argument classes that contain at least one
 * @Parameter with "variableArity = true".
 */
public interface IVariableArity {

  /**
   * @param optionName the name of the option to process.
   * @param options the entire list of options.
   *
   * @return how many options were processed.
   */
  int processVariableArity(String optionName, String[] options);
}