Clean up utility scripts.

This commit is contained in:
Arthur Britto
2013-01-03 00:16:19 -08:00
parent 6f7712e6c7
commit 43f888fbfa
2 changed files with 4 additions and 2 deletions

View File

@@ -3,8 +3,9 @@
// Returns a Gravatar style hash as per: http://en.gravatar.com/site/implement/hash/
//
if (process.argv.length != 3) {
if (3 != process.argv.length) {
process.stderr.write("Usage: " + process.argv[1] + " email_address\n\nReturns gravitar style hash.\n");
process.exit(1);
} else {
var md5 = require('crypto').createHash('md5');

View File

@@ -11,8 +11,9 @@ var stringToHex = function (s) {
}).join("");
};
if (process.argv.length != 3) {
if (3 != process.argv.length) {
process.stderr.write("Usage: " + process.argv[1] + " string\n\nReturns hex of lowercasing string.\n");
process.exit(1);
} else {