public function executeHello(array $args, array $options = array())
    {
        $name = 'unknown';
        if (empty($args)) {
            $dialog = new Dialog($this->console);
            $name = $dialog->ask('What is your name?', $name);
        } else {
            $name = $args[0];
        }
        $this->writeln(sprintf('hello %s!', $name));
    }
public function executeHello(array $args, array $options = array())
    {
        $name = 'unknown';
        if (empty($args)) {
            $dialog = new Dialog($this->console);
            $name = $dialog->ask('What is your name?', $name);
        } else {
            $name = $args[0];
        }
        $this->writeln(sprintf('hello %s!', $name));
    }
public function executeHello ( array $ args , array $ options = array ( ) ) { $ name = 'unknown' ; if ( empty ( $ args ) ) { $ dialog = new Dialog ( $ this -> console ) ; $ name = $ dialog -> ask ( 'What is your name?' , $ name ) ; } else { $ name = $ args [ 0 ] ; } $ this -> writeln ( sprintf ( 'hello %s!' , $ name ) ) ; }
Says hello to someone

@arg name The name of the person to say hello to
Says hello to someone