From 17aa56a7d5c8d37dae2848c7526e4ad6a68dfe21 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sat, 25 Nov 2023 19:02:50 +1300 Subject: [PATCH] [readme]: document string positionals --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 74da323..933e300 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,8 @@ Return an argument object `argv` populated with the array arguments from `args`. them. Numeric-looking arguments will be returned as numbers unless `opts.string` or -`opts.boolean` is set for that argument name. +`opts.boolean` contains that argument name. To disable numeric conversion +for non-option arguments, add `'_'` to `opts.string`. Any arguments after `'--'` will not be parsed and will end up in `argv._`.