#!/usr/bin/env zsh emulate -L zsh setopt err_exit no_unset target=${1:-} case "$target" in dev|development) url="https://dev.example.com" ;; staging) url="https://staging.example.com" ;; production|prod) url="https://www.example.com" ;; "") print -u2 -- "missing target" exit 1 ;; *) print -u2 -- "unknown target: $target" exit 1 ;; esac print -r -- "target=$target" print -r -- "url=$url"