show help on missing input

This commit is contained in:
Ben Zörb 2015-06-25 23:43:39 +02:00
parent 6d722abbb3
commit 962046d80d

4
cli.js
View File

@ -114,6 +114,10 @@ function run(data) {
}
});
if (!opts.html || !opts.css) {
cli.showHelp();
}
try {
var out = inlineCritical(opts.html, opts.css, opts);
console.log(out.toString());