Fix argument parsing bug in create command

This commit is contained in:
2026-02-10 15:57:07 +00:00
parent 37cad06ab6
commit f135b6b223

View File

@@ -301,7 +301,7 @@ async function main() {
}
case 'create': {
const [_, _cmd, domain, ...recordArgs] = args;
const [, domain, ...recordArgs] = args;
if (!domain) {
console.error('Error: domain required');
console.error('Usage: node porkbun-dns.js create <domain>');