this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

vid2gif: add missing option for output file

yemou c623c2ae 2bedf770

+3 -2
+3 -2
scritps/vid2gif
··· 1 1 #!/bin/sh 2 2 usage() { 3 - printf '%b\n' "${0##*/} -i <file> [OPTIONS]" \ 3 + printf '%b\n' "${0##*/} -i <input_file> [OPTIONS]" \ 4 4 "\noptions:" \ 5 5 "\t-S TIMESTAMP - timestamp to start the gif" \ 6 6 "\t-d SECONDS - how long the gif should be" \ ··· 22 22 arg=${flag%"${flag#?}"} 23 23 24 24 case $arg in 25 - h ) usage; exit 0 ;; 26 25 S ) VID2GIF_START=$1; shift ;; 27 26 d ) VID2GIF_DURATION=$1; shift ;; 27 + h ) usage; exit 0 ;; 28 28 i ) VID2GIF_INPUT_FILE=$1; shift ;; 29 + o ) VID2GIF_OUTPUT_FILE=$1; shift ;; 29 30 s ) VID2GIF_SCALE=$1; shift ;; 30 31 * ) printf '%s\n' "${0##*/}: -$arg: invalid argument" 1>&2 31 32 usage 1>&2; exit 1 ;;