improve usability of help
This commit is contained in:
parent
57ee6badf8
commit
834102fb7b
|
|
@ -110,6 +110,8 @@ for (var i = 2; i < process.argv.length; ++i) {
|
||||||
STMTS_TO_USE = STMTS_TO_USE.filter(function(id){ return id !== omit; })
|
STMTS_TO_USE = STMTS_TO_USE.filter(function(id){ return id !== omit; })
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case '--help':
|
||||||
|
case '-h':
|
||||||
case '-?':
|
case '-?':
|
||||||
console.log('** UglifyJS fuzzer help **');
|
console.log('** UglifyJS fuzzer help **');
|
||||||
console.log('Valid options (optional):');
|
console.log('Valid options (optional):');
|
||||||
|
|
@ -128,7 +130,7 @@ for (var i = 2; i < process.argv.length; ++i) {
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
// first arg may be a number.
|
// first arg may be a number.
|
||||||
if (i > 2 || !parseInt(process.argv[i], 10)) throw new Error('Unknown argument[' + process.argv[i] + ']; see -? for help');
|
if (i > 2 || !parseInt(process.argv[i], 10)) throw new Error('Unknown argument[' + process.argv[i] + ']; see -h for help');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user