Changes in module 'nf-core/pretextsnapshot'
--- modules/nf-core/pretextsnapshot/main.nf
+++ modules/nf-core/pretextsnapshot/main.nf
@@ -18,11 +18,13 @@
     task.ext.when == null || task.ext.when
 
     script:
-    def args = task.ext.args ?: ''
-    def prefix = task.ext.prefix ?: "${meta.id}."
+    def VERSION = "0.0.4"
+    def args    = task.ext.args ?: ''
+    def prefix  = task.ext.prefix ?: "${meta.id}."
     """
     PretextSnapshot \\
         $args \\
+        --memory $task.memory \\
         --map $pretext_map \\
         --prefix $prefix \\
         --folder .
@@ -32,4 +34,15 @@
         pretextsnapshot: \$(echo \$(PretextSnapshot --version 2>&1) | sed 's/^.*PretextSnapshot Version //' )
     END_VERSIONS
     """
+
+    stub:
+    def prefix = task.ext.prefix ?: "${meta.id}"
+    """
+    touch ${prefix}.png
+
+    cat <<-END_VERSIONS > versions.yml
+    "${task.process}":
+        pretextsnapshot: $VERSION
+    END_VERSIONS
+    """
 }

************************************************************
