Cake\Shell\RoutesShell::getOptionParser PHP 메소드

getOptionParser() 공개 메소드

Get the option parser.
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser
리턴 Cake\Console\ConsoleOptionParser
    public function getOptionParser()
    {
        $parser = parent::getOptionParser();
        $parser->description('Get the list of routes connected in this application. ' . 'This tool also lets you test URL generation and URL parsing.')->addSubcommand('check', ['help' => 'Check a URL string against the routes. ' . 'Will output the routing parameters the route resolves to.'])->addSubcommand('generate', ['help' => 'Check a routing array against the routes. ' . "Will output the URL if there is a match.\n\n" . "Routing parameters should be supplied in a key:value format. " . "For example `controller:Articles action:view 2`"]);
        return $parser;
    }