PHP Interface Webmozart\Console\Api\Args\ArgsParser

Since: 1.0
Author: Bernhard Schussek ([email protected])
Show file Open project: webmozart/console

Public Methods

Method Description
parseArgs ( Webmozart\Console\Api\Args\RawArgs $args, ArgsFormat $format, boolean $lenient = false ) : Args Parses the raw console arguments and returns the parsed arguments.

Method Details

parseArgs() public method

Parses the raw console arguments and returns the parsed arguments.
public parseArgs ( Webmozart\Console\Api\Args\RawArgs $args, ArgsFormat $format, boolean $lenient = false ) : Args
$args Webmozart\Console\Api\Args\RawArgs The raw console arguments.
$format Webmozart\Console\Api\Args\Format\ArgsFormat The argument format.
$lenient boolean Whether the parser should ignore parse errors. If `true`, the parser will not throw any exceptions when parse errors occur.
return Args The parsed console arguments.