mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
chore(deps): update babel monorepo [skip netlify] (#3410)
* chore(deps): update babel monorepo [skip netlify] * refactor: cli Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: ylemkimon <y@ylem.kim>
This commit is contained in:
12
cli.js
12
cli.js
@@ -35,12 +35,7 @@ program.option("-f, --macro-file <path>",
|
|||||||
.option("-i, --input <path>", "Read LaTeX input from the given file.")
|
.option("-i, --input <path>", "Read LaTeX input from the given file.")
|
||||||
.option("-o, --output <path>", "Write html output to the given file.");
|
.option("-o, --output <path>", "Write html output to the given file.");
|
||||||
|
|
||||||
if (require.main !== module) {
|
let options;
|
||||||
module.exports = program;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const options = program.parse(process.argv).opts();
|
|
||||||
|
|
||||||
function readMacros() {
|
function readMacros() {
|
||||||
if (options.macroFile) {
|
if (options.macroFile) {
|
||||||
@@ -109,4 +104,9 @@ function writeOutput(input) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (require.main !== module) {
|
||||||
|
module.exports = program;
|
||||||
|
} else {
|
||||||
|
options = program.parse(process.argv).opts();
|
||||||
readMacros();
|
readMacros();
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user