Property | Type | Description | |
---|---|---|---|
$flags | integer |
Method | Description | |
---|---|---|
__construct ( string $longName, string | null $shortName = null, integer $flags, string $description = null ) | Creates a new option. | |
getDescription ( ) : string | Returns the description text. | |
getLongName ( ) : string | Returns the long option name. | |
getShortName ( ) : string | Returns the short option name. | |
isLongNamePreferred ( ) : boolean | Returns whether using the long name is preferred over using the short name. | |
isShortNamePreferred ( ) : boolean | Returns whether using the short name is preferred over using the long name. |
Method | Description | |
---|---|---|
addDefaultFlags ( &$flags ) | ||
assertFlagsValid ( $flags ) | ||
assertLongNameValid ( $longName ) | ||
assertShortNameValid ( $shortName, $flags ) | ||
removeDashPrefix ( $string ) | ||
removeDoubleDashPrefix ( $string ) |
public __construct ( string $longName, string | null $shortName = null, integer $flags, string $description = null ) | ||
$longName | string | The long option name. |
$shortName | string | null | The short option name. |
$flags | integer | A bitwise combination of the option flag constants. |
$description | string | A human-readable description of the option. |
public getDescription ( ) : string | ||
return | string | The description text. |
public getLongName ( ) : string | ||
return | string | The long name. |
public getShortName ( ) : string | ||
return | string | The short name. |
public isLongNamePreferred ( ) : boolean | ||
return | boolean | Returns `true` if the long name is preferred over the short name. |
public isShortNamePreferred ( ) : boolean | ||
return | boolean | Returns `true` if the short name is preferred over the long name. |