public function mergeApplicationDefinition($mergeArgs = true)
    {
        // Get current application options
        $appDefinition = $this->getApplication()->getDefinition();
        $originalOptions = $appDefinition->getOptions();

        // Temporarily replace application options with a filtered list
        $appDefinition->setOptions(
            $this->filterApplicationOptions($originalOptions)
        );

        parent::mergeApplicationDefinition($mergeArgs);

        // Restore original application options
        $appDefinition->setOptions($originalOptions);
    }
public function mergeApplicationDefinition($mergeArgs = true)
    {
        // Get current application options
        $appDefinition = $this->getApplication()->getDefinition();
        $originalOptions = $appDefinition->getOptions();

        // Temporarily replace application options with a filtered list
        $appDefinition->setOptions(
            $this->filterApplicationOptions($originalOptions)
        );

        parent::mergeApplicationDefinition($mergeArgs);

        // Restore original application options
        $appDefinition->setOptions($originalOptions);
    }
public function mergeApplicationDefinition ( $ mergeArgs = true ) { // Get current application options $ appDefinition = $ this -> getApplication ( ) -> getDefinition ( ) ; $ originalOptions = $ appDefinition -> getOptions ( ) ; // Temporarily replace application options with a filtered list $ appDefinition -> setOptions ( $ this -> filterApplicationOptions ( $ originalOptions ) ) ; parent :: mergeApplicationDefinition ( $ mergeArgs ) ; // Restore original application options $ appDefinition -> setOptions ( $ originalOptions ) ; }
Ignore user-defined global options

Any global options defined by user-code are meaningless to this command.
Options outside of the core defaults are ignored to avoid name and shortcut conflicts.
Ignore user - defined global options