#!/usr/bin/env bash
# Legacy wrapper: positional args map to attach [name] -s SIZE
set -euo pipefail
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [[ $# -eq 0 ]]; then
    exec "$dir/floppy" attach
elif [[ $# -eq 1 ]]; then
    exec "$dir/floppy" attach "$1"
elif [[ $# -eq 2 ]]; then
    exec "$dir/floppy" attach "$1" -s "$2"
else
    echo "Usage: floppy-attach [name] [size_kb]" >&2
    echo "       or: floppy attach [name] [-s SIZE]" >&2
    exit 1
fi