Fix argument parsing bug in create command
This commit is contained in:
1 parent
37cad06ab6
commit
f135b6b223
1 file changed
+1
-1
@@ -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>');
|
||||
|
||||
Reference in new issue
Block a user