feat(tools/respec2html): add --version flag (#3343)

This commit is contained in:
Sid Vishnoi 2021-02-25 09:37:30 +05:30 committed by GitHub
parent b80c9d3556
commit f068b6dd77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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) {