diff --git a/projects/npm-tools/packages/changelog-generator/src/index.js b/projects/npm-tools/packages/changelog-generator/src/index.js index 6094b2d161..bc3af9e2e7 100644 --- a/projects/npm-tools/packages/changelog-generator/src/index.js +++ b/projects/npm-tools/packages/changelog-generator/src/index.js @@ -702,13 +702,6 @@ async function getVersionTagPrefix() { } async function main(_node, _script, ...args) { - const options = await parseArgs(args); - - if (!options) { - process.exit(1); - } - const {outfile, to, updateTags} = options; - printBanner(` changelog.js ============ @@ -717,6 +710,14 @@ async function main(_node, _script, ...args) { for duty! `); + const options = await parseArgs(args); + + if (!options) { + process.exit(1); + } + + const {outfile, to, updateTags} = options; + if (updateTags) { try { info('Fetching remote tags: run with --no-update-tags to skip');