From 35593f661ba5ef6cd98dda7c7b2842e77ef65e97 Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Tue, 8 Aug 2023 22:38:54 -0700
Subject: [PATCH] Fix ReferenceError: options is not defined

Just fall-through to display help output for unrecognized options.
---
 exec/mqtt_pub.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/exec/mqtt_pub.js b/exec/mqtt_pub.js
index 7c5d4aa8a6..5f027a0e5d 100644
--- a/exec/mqtt_pub.js
+++ b/exec/mqtt_pub.js
@@ -62,9 +62,8 @@ for(var i = 0; i < argc; ++i) {
 			break;
 		case '?':
 		case 'help':
-			usage();
 		default:
-			options[argv[i].slice(1)] = true;
+			usage();
 			break;
 	}
 }
-- 
GitLab