rename: invert old and new instance name
[ext/instance-debootstrap.git] / common.sh
index c541aa1..62cea59 100644 (file)
--- a/common.sh
+++ b/common.sh
@@ -6,9 +6,9 @@ get_api5_arguments() {
   eval set -- "$TEMP"
   while true; do
     case "$1" in
-      -i|-o) instance=$2; shift 2;;
+      -i|-n) instance=$2; shift 2;;
 
-      -n) new_name=$2; shift 2;;
+      -o) old_name=$2; shift 2;;
 
       -b) blockdev=$2; shift 2;;