options.php
options.php - defining cli params and parsing getopt array. helptext.
also helptext is defined here.
Tags
Table of Contents
Constants
- VERSION = "0.8"
- Version
Functions
- displayVersion() : mixed
- displays version
- displayHelp() : mixed
- displays help text.
- displayHelpAndExit() : mixed
- displays help text and exits.
- displayError() : mixed
- displays help text and error string
- displayHelpAndError() : mixed
- displays help text and error string
- filterPort() : mixed
Constants
VERSION
Version
public
mixed
VERSION
= "0.8"
Functions
displayVersion()
displays version
displayVersion() : mixed
displayHelp()
displays help text.
displayHelp() : mixed
displayHelpAndExit()
displays help text and exits.
displayHelpAndExit() : mixed
displayError()
displays help text and error string
displayError(mixed $error) : mixed
Parameters
- $error : mixed
-
string
displayHelpAndError()
displays help text and error string
displayHelpAndError(mixed $error) : mixed
Parameters
- $error : mixed
-
string
filterPort()
filterPort(mixed $type) : mixed
Parameters
- $type : mixed