src/console/Command.php
public function setDocoptDefinition($doc) {
        if ($this->frozen)    throw new RuntimeException('Configuration of "'.get_class($this).'" is frozen');
        if (!is_string($doc)) throw new IllegalTypeException('Illegal type of parameter $doc: '.gettype($doc));

        $parser = new DocoptParser();
        $this->docoptResult = $parser->parse($doc);

        $this->docoptDefinition = $doc;
        return $this;
    }
public function setDocoptDefinition($doc) {
        if ($this->frozen)    throw new RuntimeException('Configuration of "'.get_class($this).'" is frozen');
        if (!is_string($doc)) throw new IllegalTypeException('Illegal type of parameter $doc: '.gettype($doc));

        $parser = new DocoptParser();
        $this->docoptResult = $parser->parse($doc);

        $this->docoptDefinition = $doc;
        return $this;
    }
public function setDocoptDefinition ( $ doc ) { if ( $ this -> frozen ) throw new RuntimeException ( 'Configuration of "' . get_class ( $ this ) . '" is frozen' ) ; if ( ! is_string ( $ doc ) ) throw new IllegalTypeException ( 'Illegal type of parameter $doc: ' . gettype ( $ doc ) ) ; $ parser = new DocoptParser ( ) ; $ this -> docoptResult = $ parser -> parse ( $ doc ) ; $ this -> docoptDefinition = $ doc ; return $ this ; }
Set the command's docopt definition.

@param  string $doc - syntax definition in docopt format

@return $this

@link   http://docopt.org
Set the command s docopt definition .