diff --git a/tools/devshell/contrib/format-code b/tools/devshell/contrib/format-code
index 9ac256bfcf0c76dffa2ae25902c89afd64fb1632..8675861ae58c853486e40b2b299f795d0474ff74 100755
--- a/tools/devshell/contrib/format-code
+++ b/tools/devshell/contrib/format-code
@@ -101,6 +101,7 @@ fx-config-read
 
 GET_FILES=get_git_files
 while [ $# -gt 0 ]; do
+  ARG="$1"
   case "$1" in
     --verbose) VERBOSE="1" ;;
     --dry-run) DRY_RUN="1" ;;