# no match
if [ "$#" -eq 0 ]; then
  printf '%s\n' "usage: $(basename "$0") [command]"
  exit 1
fi

# require at least one search term
if [ "$#" -eq 0 ]; then
  printf >&2 'loc: Need a search term\n'
  exit 2
fi
