diff --git a/scritps/vid2gif b/scritps/vid2gif index b9bd5a4..d5efdaa 100755 --- a/scritps/vid2gif +++ b/scritps/vid2gif @@ -1,6 +1,6 @@ #!/bin/sh usage() { - printf '%b\n' "${0##*/} -i [OPTIONS]" \ + printf '%b\n' "${0##*/} -i [OPTIONS]" \ "\noptions:" \ "\t-S TIMESTAMP - timestamp to start the gif" \ "\t-d SECONDS - how long the gif should be" \ @@ -22,10 +22,11 @@ do arg=${flag%"${flag#?}"} case $arg in - h ) usage; exit 0 ;; S ) VID2GIF_START=$1; shift ;; d ) VID2GIF_DURATION=$1; shift ;; + h ) usage; exit 0 ;; i ) VID2GIF_INPUT_FILE=$1; shift ;; + o ) VID2GIF_OUTPUT_FILE=$1; shift ;; s ) VID2GIF_SCALE=$1; shift ;; * ) printf '%s\n' "${0##*/}: -$arg: invalid argument" 1>&2 usage 1>&2; exit 1 ;;