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
@@ -196,3 +199,31 @@ If you prefer to keep names verbatim, just set `noCamelCase` to any truthy value
196
199
197
200
$ program --set-size
198
201
-> options["set-size"]
202
+
203
+
204
+
205
+
noMixedOrder
206
+
------------
207
+
208
+
Terminate option-processing at the first non-option:
209
+
210
+
$ program --global outdated # This would work
211
+
$ program outdated --global # This would not
212
+
213
+
Normally, the whole argument list is traversed and filtered free of recognised option declarations.
214
+
If you're building complex subcommands with their own option-lists, you'll want `noMixedOrder` enabled. Seriously.
215
+
216
+
217
+
218
+
noUndefined
219
+
-----------
220
+
221
+
Throw a [`TypeError`](https://mdn.io/TypeError) if an unrecognised option is passed whilst still parsing options.
222
+
223
+
Custom error messages may be specified to replace the default `Unknown option: "%s"`. If that isn't enough, you can also supply a callback to return something more specific to throw at the user.
224
+
225
+
226
+
terminator
227
+
----------
228
+
229
+
A string (conventionally a double-dash) signifying that option parsing is to stop and all remaining elements should be treated verbatim.
0 commit comments