AclExtrasShell::getOptionParser PHP Method

getOptionParser() public method

public getOptionParser ( )
    public function getOptionParser()
    {
        $plugin = array('short' => 'p', 'help' => __('Plugin to process'));
        return parent::getOptionParser()->description(__("Better manage, and easily synchronize you application's ACO tree"))->addSubcommand('aco_update', array('parser' => array('options' => compact('plugin')), 'help' => __('Add new ACOs for new controllers and actions. Does not remove nodes from the ACO table.')))->addSubcommand('aco_sync', array('parser' => array('options' => compact('plugin')), 'help' => __('Perform a full sync on the ACO table.' . 'Will create new ACOs or missing controllers and actions.' . 'Will also remove orphaned entries that no longer have a matching controller/action')))->addSubcommand('verify', array('help' => __('Verify the tree structure of either your Aco or Aro Trees'), 'parser' => array('arguments' => array('type' => array('required' => true, 'help' => __('The type of tree to verify'), 'choices' => array('aco', 'aro'))))))->addSubcommand('recover', array('help' => __('Recover a corrupted Tree'), 'parser' => array('arguments' => array('type' => array('required' => true, 'help' => __('The type of tree to recover'), 'choices' => array('aco', 'aro'))))));
    }