+eval set -- "$(getopt -o '' -l apply,keep-old,prefix:,help -- "$@")" || die_getopt
+while :; do
+ case $1 in
+ --apply)
+ APPLY=:
+ shift
+ ;;
+ --keep-old)
+ KEEP_OLD=:
+ shift
+ ;;
+ --prefix)
+ PREFIX="${2%-}-"
+ shift 2
+ ;;
+ --help)
+ usage 0
+ shift
+ ;;
+ --) shift; break ;;
+ *) die_getopt ;;
+ esac
+done
+
+[ "$1" ] || usage 1