MCPcopy Create free account
hub / github.com/ReactiveX/rxjs / parseArguments

Function parseArguments

scripts/release/beta.mjs:116–121  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

114}
115
116export function parseArguments(argv) {
117 const dryRun = argv.includes('--dry-run');
118 const positional = argv.filter((value) => value !== '--dry-run');
119 if (positional.length !== 1) throw new Error('Usage: pnpm release:beta <9.0.0-beta.N> [--dry-run]');
120 return { dryRun, version: positional[0] };
121}
122
123export function validateBetaVersion(version) {
124 if (!/^9\.0\.0-beta\.(0|[1-9]\d*)$/.test(version)) {

Callers 2

beta.test.mjsFile · 0.90
mainFunction · 0.70

Calls 2

includesMethod · 0.80
filterMethod · 0.45

Tested by

no test coverage detected