Args: Rename --image_{source,backend} to {source,backend}

This commit is contained in:
Dylan Araps 2017-01-17 14:52:25 +11:00
parent faf2d3382e
commit a3b26d131b

View file

@ -3918,16 +3918,15 @@ get_args() {
"--disk_display") disk_display="$2" ;; "--disk_display") disk_display="$2" ;;
# Image backend # Image backend
"--image_backend") image_backend="$2" ;; "--backend") image_backend="$2" ;;
"--image_source") image_source="$2" ;; "--source") image_source="$2" ;;
"--ascii") image_backend="ascii" ;; "--ascii" | "--caca" | "--catimg" | "--jp2a" | "--iterm2" | "--off" | "--tycat" | "--w3m")
"--caca") image_backend="caca" ;; image_backend="${1/--}"
"--catimg") image_backend="catimg" ;; case "$2" in
"--jp2a") image_backend="jp2a" ;; "-"* | "") ;;
"--iterm2") image_backend="iterm2" ;; *) image_source="$2" ;;
"--off") image_backend="off" ;; esac
"--tycat") image_backend="tycat" ;; ;;
"--w3m") image_backend="w3m" ;;
# Image options # Image options
"--image_size" | "--size") image_size="$2" ;; "--image_size" | "--size") image_size="$2" ;;