CLI args

Result Page
Package:
CLI args
Summary:
Parse and process command line arguments
Groups:
Console, PHP 5
Author:
Dennis Kaplan
Description:
This class can be used to parse and process command line arguments.

It takes a definition of the arguments that the command expects, like the argument name, required flag and default value.

The class can parse and processed the arguments according to the defined rules and returns an array of argument values if arguments are passed correctly.

It can also output an help message when the -h, -help or --help switches are passed.


Powered by Gewgley