From e82c282dd499562b530902ae5a69419130b52d8e Mon Sep 17 00:00:00 2001 From: David Sanders Date: Wed, 2 Aug 2023 16:52:54 -0700 Subject: [PATCH] fix: also output write mode usage in CLI if no mode provided (#22) --- src/bin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin.ts b/src/bin.ts index 14605f5..adaf026 100755 --- a/src/bin.ts +++ b/src/bin.ts @@ -26,6 +26,7 @@ const writeHelpText = `electron-fuses write --app [path-to-app] <...key=on/off>` if (mode !== 'read' && mode !== 'write') { console.error('Invalid mode, check the usage below:'); console.info(readHelpText); + console.info(writeHelpText); process.exit(0); }