diff --git a/Moosh/Command/Moodle39/Activity/ActivityAdd.php b/Moosh/Command/Moodle39/Activity/ActivityAdd.php index 693ba2ba..25ddd358 100755 --- a/Moosh/Command/Moodle39/Activity/ActivityAdd.php +++ b/Moosh/Command/Moodle39/Activity/ActivityAdd.php @@ -63,7 +63,8 @@ public function execute() $options = $this->expandedOptions; if (!empty($options['options'])) { - $course_module_options = preg_split( '/\s+(?=--)/', $options['options']); + $course_module_options = preg_split( '/\s+(?=--)/m', $options['options']); + var_dump($course_module_options); foreach ( $course_module_options as $option ) { $arg = new Argument( $option ); $name = $this->getOptionName($arg); diff --git a/moosh.php b/moosh.php index 65919103..27308a32 100755 --- a/moosh.php +++ b/moosh.php @@ -32,7 +32,7 @@ use GetOptionKit\ContinuousOptionParser; use GetOptionKit\OptionCollection; -define('MOOSH_VERSION', '1.19'); +define('MOOSH_VERSION', '1.20'); define('MOODLE_INTERNAL', true); $appspecs = new OptionCollection;