public function command($arguments, $options)
    {
        $this->setClassname($this->getArgument(0));

        if (! $this->getOption('signature')) {
            return $this->error('You must specify command signature [--signature=<signature>].');
        }

        if (! $this->getOption('method')) {
            return $this->error('You must specify the name of command method name [--method=<method>].');
        }

        $this->generateClass('Console/Commands', 'command.stub', [
            'classname' => $this->getClassname(),
            'signature' => $this->getOption('signature'),
            'method' => $this->getOption('method'),
        ]);
    }
public function command($arguments, $options)
    {
        $this->setClassname($this->getArgument(0));

        if (! $this->getOption('signature')) {
            return $this->error('You must specify command signature [--signature=<signature>].');
        }

        if (! $this->getOption('method')) {
            return $this->error('You must specify the name of command method name [--method=<method>].');
        }

        $this->generateClass('Console/Commands', 'command.stub', [
            'classname' => $this->getClassname(),
            'signature' => $this->getOption('signature'),
            'method' => $this->getOption('method'),
        ]);
    }
public function command ( $ arguments , $ options ) { $ this -> setClassname ( $ this -> getArgument ( 0 ) ) ; if ( ! $ this -> getOption ( 'signature' ) ) { return $ this -> error ( 'You must specify command signature [--signature=<signature>].' ) ; } if ( ! $ this -> getOption ( 'method' ) ) { return $ this -> error ( 'You must specify the name of command method name [--method=<method>].' ) ; } $ this -> generateClass ( 'Console/Commands' , 'command.stub' , [ 'classname' => $ this -> getClassname ( ) , 'signature' => $ this -> getOption ( 'signature' ) , 'method' => $ this -> getOption ( 'method' ) , ] ) ; }
Scafford custom command.

## OPTIONS

<classname>
: Name of the command class.

[--command=<command>]
: Command name.

[--method=<method>]
: Name of the command method.

## EXAMPLE

wp assely:make command RandomMovie --command="app:movie" --method="random"
Scafford custom command .