You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.error(`Error at arg ${err.i}: ${err.msg}`);
104
-
returnfalse; // Continue parsing
105
-
}
106
100
```
107
101
108
102
## 🛠️ API
@@ -132,7 +126,7 @@ The function returns either:
132
126
{
133
127
// Regular variable with default value and option definitions
134
128
variableName: {
135
-
def: defaultValue, // Required: Boolean, string, or string[]
129
+
def: defaultValue, // Boolean, string, or string[]
136
130
set: optionDefinition, // Options that set this variable
137
131
rst: optionDefinition // Options that reset this variable to default
138
132
},
@@ -145,9 +139,7 @@ The function returns either:
145
139
Option definitions can be:
146
140
- A string: `'--option'`
147
141
- An array: `['--option', '-o']`
148
-
-`null` (refers to the variable name)
149
-
150
-
Note: `undefined` is not supported. While it may work like `null` in `OptKit`, this is unintended. At `ExitKit`, `undefined` behaves differently from `null`.
142
+
-`null` refers to the variable name. `[null, ...]` is also supported.
0 commit comments