Minor fix 🚧
This commit is contained in:
parent
12357dde55
commit
de3599c017
|
|
@ -54,6 +54,9 @@ program.option("--verbose", "Print diagnostic messages.");
|
||||||
program.option("--warn", "Print warning messages.");
|
program.option("--warn", "Print warning messages.");
|
||||||
program.option("--wrap <name>", "Embed everything as a function with “exports” corresponding to “name” globally.");
|
program.option("--wrap <name>", "Embed everything as a function with “exports” corresponding to “name” globally.");
|
||||||
program.arguments("[files...]").parseArgv(process.argv);
|
program.arguments("[files...]").parseArgv(process.argv);
|
||||||
|
if (!program.args.length){
|
||||||
|
program.outputHelp();
|
||||||
|
}
|
||||||
if (program.configFile) {
|
if (program.configFile) {
|
||||||
options = JSON.parse(read_file(program.configFile));
|
options = JSON.parse(read_file(program.configFile));
|
||||||
}
|
}
|
||||||
|
|
@ -169,9 +172,6 @@ if (program.self) {
|
||||||
});
|
});
|
||||||
process.stdin.resume();
|
process.stdin.resume();
|
||||||
}
|
}
|
||||||
if (!program.args.length){
|
|
||||||
program.help();
|
|
||||||
}
|
|
||||||
|
|
||||||
function convert_ast(fn) {
|
function convert_ast(fn) {
|
||||||
return UglifyJS.AST_Node.from_mozilla_ast(Object.keys(files).reduce(fn, null));
|
return UglifyJS.AST_Node.from_mozilla_ast(Object.keys(files).reduce(fn, null));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user