프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$error | string | Error during argument parsing. | |
$nonOptions | array | Parsed non-options. | |
$options | array | Parsed options. |
메소드 | 설명 | |
---|---|---|
__construct ( array $arguments, array $options ) : void | Parse command line arguments. | |
getError ( ) : string | Get parser error. | |
getNonOptions ( ) : array | Get all parsed non-options. | |
getOptions ( ) : array | Get all parsed options. |
메소드 | 설명 | |
---|---|---|
parseLongOption ( string $option, string $argument, array $options, integer &$argumentIndex ) : boolean | Parse a long option. | |
parseShortOption ( string $option, string $argument, array $options, integer &$argumentIndex ) : boolean | Parse a short option. |