feat(tools/respec2html): add --version flag (#3343)
This commit is contained in:
parent
b80c9d3556
commit
f068b6dd77
|
@ -60,6 +60,12 @@ cli.action((source, destination, opts) => {
|
|||
});
|
||||
});
|
||||
|
||||
// https://github.com/lukeed/sade/issues/28#issuecomment-516104013
|
||||
cli._version = () => {
|
||||
const { version } = require("../package.json");
|
||||
console.log(version);
|
||||
};
|
||||
|
||||
cli.parse(process.argv);
|
||||
|
||||
async function run(source, destination, options) {
|
||||
|
|
Loading…
Reference in New Issue