PHP Classes

CLI Parser extended: Get values from command line arguments

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 353 This week: 1All time: 6,969 This week: 560Up
Version License PHP version Categories
cliparser-extended 0.2GNU General Publi...5.0PHP 5, Text processing, Console, Parsers
Description 

Author

This class can get values from command line arguments.

It is an enhanced version of the CLI parser class originally written by Diego Feitosa.

This version can automatically load the argument type classes, the main class is no longer abstract and so can be used directly or be extended, it supports arguments that can be used without the switch, the type of the argument can show in the help message, invalid arguments can be associated to error messages.

Picture of Olivier Bourdoux
  Performance   Level  
Name: Olivier Bourdoux <contact>
Classes: 1 package by
Country: Belgium Belgium
Age: 37
All time rank: 368320 in Belgium Belgium
Week rank: 411 Up3 in Belgium Belgium Up

  Files folder image Files  
File Role Description
Plain text file CliParser.inc Class Main class
Plain text file CliToken.inc Class Token Class
Plain text file CliTokenBoolean.inc Class Token Boolean Class
Plain text file CliTokenDirectory.inc Class Token Directory Class
Plain text file CliTokenEnum.inc Class Token Enum Class
Plain text file CliTokenFile.inc Class Token File Class
Plain text file CliTokenInteger.inc Class Token Integer Class
Plain text file CliTokenNumeric.inc Class Token Numeric Class
Plain text file CliTokenString.inc Class Token String Class
Plain text file CliTokenExample.inc Class Token Example Class
Accessible without login Plain text file example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:353
This week:1
All time:6,969
This week:560Up