src/Shell/SwaggerShell.php
public function getOptionParser()
    {
        $parser = parent::getOptionParser();

        $parser->addSubcommand('makedocs', [
            'description' => __('Crawl-generate fresh swagger file system documents for all entries found in the library.')
        ])
        ->addArgument('host', [
            'help' => __("Swagger host FQDN (without protocol) as to be inserted into the swagger doc property 'host'"),
            'required' => true
        ]);

        return $parser;
    }
public function getOptionParser()
    {
        $parser = parent::getOptionParser();

        $parser->addSubcommand('makedocs', [
            'description' => __('Crawl-generate fresh swagger file system documents for all entries found in the library.')
        ])
        ->addArgument('host', [
            'help' => __("Swagger host FQDN (without protocol) as to be inserted into the swagger doc property 'host'"),
            'required' => true
        ]);

        return $parser;
    }
public function getOptionParser ( ) { $ parser = parent :: getOptionParser ( ) ; $ parser -> addSubcommand ( 'makedocs' , [ 'description' => __ ( 'Crawl-generate fresh swagger file system documents for all entries found in the library.' ) ] ) -> addArgument ( 'host' , [ 'help' => __ ( "Swagger host FQDN (without protocol) as to be inserted into the swagger doc property 'host'" ) , 'required' => true ] ) ; return $ parser ; }
Define available subcommands, arguments and options.

@return \Cake\Console\ConsoleOptionParser
@throws \Aura\Intl\Exception
Define available subcommands arguments and options .