#! /bin/sh
case "$1" in
  (--help) echo "pause for NUMBER seconds" ;;
  (*)
    if echo "$1" | grep -Eq '^([0-9]+(\.[0-9]*)?|[0-9]*\.[0-9]+)$' ; then
      sleep "$1"
    else
      echo 'FAIL: $1 is not a number'
    fi
esac