From 941639e3da1b31b911cf1e88dd5a4b733491878f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sun, 15 Jan 2017 14:42:19 +0100 Subject: [PATCH] Update usage information. --- usb/write-eeprom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usb/write-eeprom.js b/usb/write-eeprom.js index 442aaa92..24264dfb 100755 --- a/usb/write-eeprom.js +++ b/usb/write-eeprom.js @@ -1,9 +1,11 @@ #!/usr/bin/env node let uhk = require('./uhk'); + +let programName = process.argv[1]; let arg = process.argv[2] || ''; if (arg.length === 0) { - console.log('Gotta specify a string to be written to the EEPROM as the argument of this script'); + console.log(`Usage: ${programName} [string to be written to the EEPROM]`); process.exit(1); }