Login   Register  
PHP Classes
elePHPant
Icontem

CLI args: Parse and process command line arguments

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Dennis T Kaplan
Name: Dennis T Kaplan <contact>
Classes: 5 packages by
Country: United States United States
Age: 48
All time rank: 1330178 in United States United States
Week rank: 1156 Up131 in United States United States Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of Dennis T Kaplan  >  CLI args  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: CLI args
Base name: argv
Description: Parse and process command line arguments
Version: 2
PHP version: 5
License: GNU General Public License (GPL)
All time users: 327 users
All time rank: 6339
Week users: 0 users
Week rank: 1448 Equal
 
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Applications   Related pages   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Console Command line and console utilities View top rated classes

  Files folder image Screenshots  
Screenshot.png
File Role Description
Accessible without login Image file Screenshot.png Screen Result Page


  User ratings  
Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
All php TaMeR classes
This script is part of my library
Blog
Check related news
My Wiki
wiki

  Files folder image Files  
File Role Description
Accessible without login Plain text file argv.php Class Capture command line arguments in to your php script
Accessible without login Plain text file testargv.php Example Example usage

Download Download all files: argv.tar.gz argv.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.