public function init( $config = NULL )
    {
        $option                   = new Option();
        $option->shortCode        = 'h';
        $option->longCode         = 'help';
        $option->isOptional       = TRUE;
        $option->type             = Type::BOOLEAN;
        $option->shortDescription = 'Show the help menu';

        $this->options[ ] = $option;

        $option                   = new Option();
        $option->shortCode        = 'v';
        $option->longCode         = 'verbose';
        $option->isOptional       = TRUE;
        $option->type             = Type::BOOLEAN;
        $option->shortDescription = 'Show detailed log';

        $this->options[ ] = $option;
    }
public function init( $config = NULL )
    {
        $option                   = new Option();
        $option->shortCode        = 'h';
        $option->longCode         = 'help';
        $option->isOptional       = TRUE;
        $option->type             = Type::BOOLEAN;
        $option->shortDescription = 'Show the help menu';

        $this->options[ ] = $option;

        $option                   = new Option();
        $option->shortCode        = 'v';
        $option->longCode         = 'verbose';
        $option->isOptional       = TRUE;
        $option->type             = Type::BOOLEAN;
        $option->shortDescription = 'Show detailed log';

        $this->options[ ] = $option;
    }
public function init ( $ config = NULL ) { $ option = new Option ( ) ; $ option -> shortCode = 'h' ; $ option -> longCode = 'help' ; $ option -> isOptional = TRUE ; $ option -> type = Type :: BOOLEAN ; $ option -> shortDescription = 'Show the help menu' ; $ this -> options [ ] = $ option ; $ option = new Option ( ) ; $ option -> shortCode = 'v' ; $ option -> longCode = 'verbose' ; $ option -> isOptional = TRUE ; $ option -> type = Type :: BOOLEAN ; $ option -> shortDescription = 'Show detailed log' ; $ this -> options [ ] = $ option ; }
This method adds the help and verbose options to the command.

You can optionally remove these options by clearing the command
options array before adding your own commands.

@param array $config optional configuration array
This method adds the help and verbose options to the command .