package com.jscape.util.cli.ext;

/**
 * Provides services for parsing an option.
 *
 * @author Alex Usun
 */
public interface OptionFormat {

    /**
     * Parses an option using specified command line argument iterator.
     *
     * @param option           an option to parse
     * @param arguments arguments
     *
     * @throws InvalidArgumentsException if a parsing error occurs
     */
    void parse(Option option, Arguments arguments)
            throws InvalidArgumentsException;

}
