INNER CODE UNIT · TypeScript
has
rit3zh/reacticx · cloudflare/cli/index.ts:124
const has = (...names: string[]) => names.some((name) => own.includes(name));
return {
command,
flags: {
dry: has("--dry", "--dry-run", "-n"),
check: has("--check"),
force: has("--force", "-f"),
prune: has("--prune"),
verify: has("--verify"),
backend: has("--s3") ? "s3" : has("--wrangler") ? "wrangler" : undefined,
only: parseList(own, "--only"),
skip: parseList(own, "--skip"),
keepGoing: has("--keep-going"),
help: has("--help", "-h"),
passthrough,
},
};