From 870d8dec997588491cd7937cc6bbcd1ea9540edf Mon Sep 17 00:00:00 2001 From: James Sumners Date: Wed, 26 Oct 2022 08:05:38 -0400 Subject: [PATCH] Update readme.md https://twitter.com/ljharb/status/1579610529337049088?s=20&t=s4t-6WoFHbjQVGHhn_ZBEw --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 9067e80..7edd8c7 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ > Quickly scan for CLI flags and arguments -This is a [fast](#benchmarks) and lightweight alternative to [`minimist`](https://github.com/substack/minimist) and [`yargs-parser`](https://github.com/yargs/yargs-parser). +This is a [fast](#benchmarks) and lightweight alternative to [`minimist`](https://github.com/minimistjs/minimist) and [`yargs-parser`](https://github.com/yargs/yargs-parser). It only exists because I find that I usually don't need most of what `minimist` and `yargs-parser` have to offer. However, `mri` is similar _enough_ that it might function as a "drop-in replacement" for you, too! @@ -118,9 +118,9 @@ Once an unknown flag is encountered, parsing will terminate, regardless of your - Missing `options`: - `opts.stopEarly` - `opts['--']` -- Ignores newlines (`\n`) within args (see [test](https://github.com/substack/minimist/blob/master/test/parse.js#L69-L80)) -- Ignores slashBreaks within args (see [test](https://github.com/substack/minimist/blob/master/test/parse.js#L147-L157)) -- Ignores dot-nested flags (see [test](https://github.com/substack/minimist/blob/master/test/parse.js#L180-L197)) +- Ignores newlines (`\n`) within args (see [test](https://github.com/minimistjs/minimist/blob/2edc957fb668c81e2bd9e93748866a30ab33b28e/test/parse.js#L71-L82)) +- Ignores slashBreaks within args (see [test](https://github.com/minimistjs/minimist/blob/2edc957fb668c81e2bd9e93748866a30ab33b28e/test/parse.js#L159-L169)) +- Ignores dot-nested flags (see [test](https://github.com/minimistjs/minimist/blob/2edc957fb668c81e2bd9e93748866a30ab33b28e/test/parse.js#L192-L209)) #### yargs-parser