-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
in ts:
100 } else if (!arg.startsWith("-")) {
101 address = arg;
102 }
• Multiple positional args are accepted
• Last one silently wins
fix with:
let addressSet = false;
...
if (!arg.startsWith("-")) {
if (addressSet) {
throw new Error("Only one address may be specified");
}
address = arg;
addressSet = true;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels