Console_Getargs
[ class tree: Console_Getargs ] [ index: Console_Getargs ] [ all elements ]

File: Getargs.php

Source Location: /Console_Getargs-1.0.0/Getargs.php

Classes:

Console_Getargs
Command-line arguments parsing class
Console_Getargs_Options
This class implements a wrapper to the command line options and arguments.

Page Details:

Includes:

require_once('PEAR.php') [line 21]

CONSOLE_GETARGS_ERROR_CONFIG [line 32]

CONSOLE_GETARGS_ERROR_CONFIG = -1
Wrong configuration

Error Constants This error will be TRIGGERed when a configuration error is found, it will also issue a WARNING.


[ Top ]



CONSOLE_GETARGS_ERROR_USER [line 41]

CONSOLE_GETARGS_ERROR_USER = -2
User made an error

Error Constants This error will be RETURNed when a bad parameter is found in the command line, for example an unknown parameter or a parameter with an invalid number of options.


[ Top ]



CONSOLE_GETARGS_HELP [line 50]

CONSOLE_GETARGS_HELP = -3
Help text wanted

Error Constants This error will be RETURNed when the user asked to see the help by using -h or --help in the command line, you can then print the help ascii art text by using the Console_Getargs::getHelp() method


[ Top ]



Documentation generated on Mon, 11 Mar 2019 13:55:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.