src/Shell/CompileShell.php
public function getOptionParser(): ConsoleOptionParser
    {
        return parent::getOptionParser()->addSubcommand(
            'all',
            [
                'short' => 'a',
                'help' => __('Searches and precompiles all twig templates it finds.'),
            ]
        )->addSubcommand(
            'plugin',
            [
                'short' => 'p',
                'help' => __('Searches and precompiles all twig templates for a specific plugin.'),
            ]
        )->addSubcommand(
            'file',
            [
                'short' => 'f',
                'help' => __('Precompile a specific file.'),
            ]
        )->setDescription(__('TwigView templates precompiler'));
    }
public function getOptionParser(): ConsoleOptionParser
    {
        return parent::getOptionParser()->addSubcommand(
            'all',
            [
                'short' => 'a',
                'help' => __('Searches and precompiles all twig templates it finds.'),
            ]
        )->addSubcommand(
            'plugin',
            [
                'short' => 'p',
                'help' => __('Searches and precompiles all twig templates for a specific plugin.'),
            ]
        )->addSubcommand(
            'file',
            [
                'short' => 'f',
                'help' => __('Precompile a specific file.'),
            ]
        )->setDescription(__('TwigView templates precompiler'));
    }
public function getOptionParser ( ) : ConsoleOptionParser { return parent :: getOptionParser ( ) -> addSubcommand ( 'all' , [ 'short' => 'a' , 'help' => __ ( 'Searches and precompiles all twig templates it finds.' ) , ] ) -> addSubcommand ( 'plugin' , [ 'short' => 'p' , 'help' => __ ( 'Searches and precompiles all twig templates for a specific plugin.' ) , ] ) -> addSubcommand ( 'file' , [ 'short' => 'f' , 'help' => __ ( 'Precompile a specific file.' ) , ] ) -> setDescription ( __ ( 'TwigView templates precompiler' ) ) ; }
Set options for this console.

@return \Cake\Console\ConsoleOptionParser
Set options for this console .