MDL-51632 tool_generator: Print URL of the generated course
[moodle.git] / admin / tool / generator / cli / maketestcourse.php
index a8bc76e..cbd43e1 100644 (file)
@@ -113,3 +113,7 @@ $backend = new tool_generator_course_backend(
     FORMAT_HTML
 );
 $id = $backend->make();
+
+if (empty($options['quiet'])) {
+    echo PHP_EOL.'Generated course: '.course_get_url($id).PHP_EOL;
+}