AssetCompress\Shell\AssetCompressShell::getOptionParser PHP Method

getOptionParser() public method

get the option parser.
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser
return Cake\Console\ConsoleOptionParser
    public function getOptionParser()
    {
        $parser = parent::getOptionParser();
        return $parser->description(['Asset Compress Shell', '', 'Builds and clears assets defined in your asset_compress.ini', 'file and in your view files.'])->addSubcommand('clear', ['help' => 'Clears all builds defined in the ini file.'])->addSubcommand('build', ['help' => 'Generate all builds defined in the ini files.'])->addOption('force', ['help' => 'Force assets to rebuild. Ignores timestamp rules.', 'short' => 'f', 'boolean' => true]);
    }