+. lib/expect_n_args
+
 copy_dirtree() {
-    expect_min_n_args 3 '(source root, target root, tags)' "$@"
+    expect_n_args 3 99 'SOURCE_ROOT TARGET_ROOT TAG...' $@
     SOURCE_ROOT="$1"
     TARGET_ROOT="$2"
     shift 2
 
+++ /dev/null
-expect_min_n_args() {
-    MIN_ARGS="$1"
-    EXPLAINER="$2"
-    shift 2
-    if [ "$#" -lt "${MIN_ARGS}" ]; then
-        echo "Need at least ${MIN_ARGS} arguments … ${EXPLAINER}"
-        false
-    fi
-}
 
+++ /dev/null
-../../../bookworm/scripts/lib/expect_min_n_args
\ No newline at end of file
 
--- /dev/null
+expect_min_n_args() {
+    MIN_ARGS="$1"
+    EXPLAINER="$2"
+    shift 2
+    if [ "$#" -lt "${MIN_ARGS}" ]; then
+        echo "Need at least ${MIN_ARGS} arguments … ${EXPLAINER}"
+        false
+    fi
+}