protected function addMoodleOption(Command $command)
    {
        $moodle = getenv('MOODLE_DIR') !== false ? getenv('MOODLE_DIR') : '.';
        $command->addOption('moodle', 'm', InputOption::VALUE_REQUIRED, 'Path to Moodle', $moodle);

        return $command;
    }
protected function addMoodleOption(Command $command)
    {
        $moodle = getenv('MOODLE_DIR') !== false ? getenv('MOODLE_DIR') : '.';
        $command->addOption('moodle', 'm', InputOption::VALUE_REQUIRED, 'Path to Moodle', $moodle);

        return $command;
    }
protected function addMoodleOption ( Command $ command ) { $ moodle = getenv ( 'MOODLE_DIR' ) !== false ? getenv ( 'MOODLE_DIR' ) : '.' ; $ command -> addOption ( 'moodle' , 'm' , InputOption :: VALUE_REQUIRED , 'Path to Moodle' , $ moodle ) ; return $ command ; }
Adds the 'moodle' option to a command.

@param Command $command

@return Command
Adds the moodle option to a command .