#!/bin/sh

case $1 in
    --version)
        echo "Shellfu (Shell dot on steroids) 0.10.62 - FloatingPointError"
        ;;
    -V|--version-semver)
        echo "0.10.62"
        ;;
    "")
        echo "${SHELLFU_DIR:-/usr/share/shellfu}/shellfu.sh"
        ;;
    *)
        echo "usage: sfpath" >&2
        echo "usage: sfpath --version[-semver]" >&2
        echo "" >&2
        echo "Intended usage of sfpath is to determine path to library loader"
        echo "inside a shellfu script (first usage), or show Shellfu version." >&2
        echo "" >&2
        echo "Other usage is not recommended." >&2
        exit 2
        ;;
esac
