Skip to content

Commit

Permalink
fix: also output write mode usage in CLI if no mode provided (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Aug 2, 2023
1 parent 933c504 commit e82c282
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e82c282

Please sign in to comment.