Skip to content
Till Wehowski edited this page Mar 3, 2015 · 8 revisions

CLI

Terminal classes

Command line processor

The command line parser is also published and documented as package "aSQL CLI" via Phpclasses.org.

This class can parse and extract a command line arguments string.

It takes a string with the arguments of a command and it parses it to extract the command options, flags and argument values.

The class returns as result an array with the values of each option, flag, or argument.

It can also rebuild the command line from the array of the parse results, so the command line parameters can be edited and rebuild from the edited parameters array.

Clone this wiki locally