From de659846d4244a23ddcee38908f5f18a1710ac55 Mon Sep 17 00:00:00 2001
From: pottzman <pottzman@hotmail.com>
Date: Thu, 10 Aug 2023 17:16:24 +1000
Subject: [PATCH] Update cli.cpp

---
 src/cli.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cli.cpp b/src/cli.cpp
index ea73a68..1e1c210 100644
--- a/src/cli.cpp
+++ b/src/cli.cpp
@@ -102,8 +102,6 @@ int CLI::parseCommandLine(int argc, char* argv[], Options* options) {
                 options->numKeys = nKeys;
             }
             i++;
-	} else if (arg == "-u" || arg == "--upgrade") {
-	    options->upgrade = true;
         } else if (arg == "-b" || arg == "--bink") {
             if (i == argc - 1) {
                 options->error = true;
@@ -141,6 +139,8 @@ int CLI::parseCommandLine(int argc, char* argv[], Options* options) {
                 options->serial = serial_val;
             }
             i++;
+	} else if (arg == "-u" || arg == "--upgrade") {
+	    options->upgrade = true;
         } else if (arg == "-f" || arg == "--file") {
             if (i == argc - 1) {
                 options->error = true;