All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.senzing.cmdline.CommandLineParser Maven / Gradle / Ivy

The newest version!
package com.senzing.cmdline;

import java.util.List;
import java.util.Map;

/**
 * Provides an interface for parsing the command line.
 */
public interface CommandLineParser {
  /**
   * Implement this method to parse the command line arguments and produce a
   * {@link Map} of {@link CommandLineOption} keys to {@link Object} values.
   *
   * @param args The command-line arguments to parse.
   *
   * @param deprecationWarnings The {@link List} to be populated with any
   *                            {@link DeprecatedOptionWarning} instances that
   *                            are generated, or null if the
   *                            caller is not interested in deprecation
   *                            warnings.
   *
   * @return The {@link Map} of {@link CommandLineOption} keys to {@link Object}
   *         values describing the provided arguments.
   *
   * @throws CommandLineException If a command-line parsing/proecesing error
   *                              occurs.
   */
  Map parseCommandLine(
      String[]                      args,
      List deprecationWarnings)
    throws CommandLineException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy