'use strict'; const { recordVersionUpdate } = require('./version-registry.cjs'); function parseArgs(argv) { let note = ''; for (const item of argv) { if (item.startsWith('--note=')) { note = item.slice('--note='.length).trim(); } } return { note }; } function main() { const options = parseArgs(process.argv.slice(2)); const entry = recordVersionUpdate({ source: 'version:record', note: options.note || 'package-version-update', }); console.log(JSON.stringify(entry, null, 2)); } main();