Browse Source

Remove -i flag for input

pull/2/merge
Luke Childs 8 years ago
parent
commit
905ccce8e1
  1. 7
      gifgen

7
gifgen

@ -33,9 +33,6 @@ while getopts "hi:o:f:sv" opt; do
h) h)
show_help=true show_help=true
;; ;;
i)
input=$OPTARG
;;
o) o)
output=$OPTARG output=$OPTARG
;; ;;
@ -53,8 +50,8 @@ while getopts "hi:o:f:sv" opt; do
done done
shift $(($OPTIND - 1)) shift $(($OPTIND - 1))
# If -i wasn't set, grab input from end of command # Grab input file from end of command
[[ "$input" = "" ]] && input=$1 input=$1
# Show help and exit if we have no input # Show help and exit if we have no input
[[ "$input" = "" ]] || [[ $show_help = true ]] && show_help && exit [[ "$input" = "" ]] || [[ $show_help = true ]] && show_help && exit

Loading…
Cancel
Save