Minor fix 🚧

This commit is contained in:
James George 2019-01-13 13:49:06 +05:30 committed by GitHub
parent 12357dde55
commit de3599c017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,9 @@ program.option("--verbose", "Print diagnostic messages.");
program.option("--warn", "Print warning messages.");
program.option("--wrap <name>", "Embed everything as a function with “exports” corresponding to “name” globally.");
program.arguments("[files...]").parseArgv(process.argv);
if (!program.args.length){
program.outputHelp();
}
if (program.configFile) {
options = JSON.parse(read_file(program.configFile));
}
@ -169,9 +172,6 @@ if (program.self) {
});
process.stdin.resume();
}
if (!program.args.length){
program.help();
}
function convert_ast(fn) {
return UglifyJS.AST_Node.from_mozilla_ast(Object.keys(files).reduce(fn, null));