Update usage information.

This commit is contained in:
László Monda
2017-01-15 14:42:19 +01:00
parent c2774030c2
commit 941639e3da

View File

@@ -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);
}