#!/usr/bin/env zsh # export a clip from a video as a gif local callstr="$0" local hasgsic=$(whence gifsicle) print_error() { echo -e "\e[1;31merror:\e[0m $1\n" } usage() { [[ "$1" != "" ]] && print_error $1 echo "Usage: $callstr [OPTIONS...] " echo "" echo " description option default val" echo " start time -s