#!/usr/bin/env zsh
# Convert animated PNG to animated WebP. Maximum lossless compression no blend.
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
zmodload zsh/zutil
local -a o_help=()
local -a o_delay=()
zparseopts -D -K -- h=o_help -help=o_help -delay:=o_delay
if [[ ${#o_help} -ne 0 || ! -v 2 ]]; then
local ret=$(( ${#o_help} ^ 1 ))
print -u $(( 1 + ${ret} )) \
"usage: ${0} [-h|--help] [--delay MILLISECONDS]" \
"