diff --git a/vcsh b/vcsh
index 496a43f2cb0dba9e9b121218da13a01bab5b59bd..4fb1c4571120dc83c926aa9d47e1f7d7d8e0921f 100755
--- a/vcsh
+++ b/vcsh
@@ -25,12 +25,12 @@ while getopts  "c:dv" flag; do
 	if [ "$1" = '-d' ] || [ "$1" = '--debug' ]; then
 		set -vx
 		VCSH_DEBUG=1
-		shift 1
 	elif [ "$1" = '-v' ];then
 		VCSH_VERBOSE=1
 	elif [ "$1" = '-c' ];then
 		VCSH_OPTION_CONFIG=$OPTARG
 	fi
+	shift 1
 done
 
 source_all() {