#!/bin/bash
where="${1:-.}" ; shift
if [ -z "$where" ]; then
	. usage dir find-opts...
fi
if [ -n "$1" ]; then
	one="$1" ; shift
else
	one="-true"
fi
exec find "$where" \( -path '*/.*' -or -path '*/node_modules' -or -path '*/coverage' -or -path '*/dist' \) -prune -or \( "$one" "$@" \) \( -type d -and -printf "%p/\n" -or -print \)
