argsert.ts ×1

Frontier kind: Joint frontier

unlabeled · c_f7dfb0b5f8ec

4 tests · 72 LOC · 3 files · introduces 1 test · 4 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range4 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
15 ranges72 lines · 3 files · Browse complete extent
All tests (intent)
4 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationargsert.mjs|title=Argsert warns if too many arguments are provided|occurrence=1 · 0 introduced LOCargsert.mjs|title=Argser…argsert.mjs|title=Argsert should throw on warnings, when under test|occurrence=1, argsert.mjs|title=Argsert should not ignore undefined values that are not trailing|occurrence=1 · 0 introduced LOCargsert.mjs|title=Argser…argsert.ts ×1 · 2 introduced LOCargsert.ts ×1argsert.ts ×1 · 3 introduced LOCargsert.ts ×1yerror.ts ×1 · 5 introduced LOCyerror.ts ×1argsert.ts ×4 · 27 introduced LOCargsert.ts ×4argsert.ts ×3 · 13 introduced LOCargsert.ts ×3parse-command.ts ×2 · 14 introduced LOCparse-command.ts ×2yerror.ts ×2 · 4 introduced LOCyerror.ts ×2lib/argsert.ts · 101 LOClib/argsert.tslib/parse-command.ts · 44 LOClib/parse-command.tslib/yerror.ts · 9 LOClib/yerror.tsargsert.mjs|title=Argsert configures function to accept 0 parameters, if only arguments object is provided|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/argsert.mjs|title=Argsert configures function to accept 0 parameters, if only arguments object is provided|occurrence=1argsert.mjs|title=Argser…argsert.mjs|title=Argsert should not ignore undefined values that are not trailing|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/argsert.mjs|title=Argsert should not ignore undefined values that are not trailing|occurrence=1argsert.mjs|title=Argser…argsert.mjs|title=Argsert should throw on warnings, when under test|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/argsert.mjs|title=Argsert should throw on warnings, when under test|occurrence=1argsert.mjs|title=Argser…argsert.mjs|title=Argsert warns if too many arguments are provided|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/argsert.mjs|title=Argsert warns if too many arguments are provided|occurrence=1argsert.mjs|title=Argser…Focused concept · argsert.ts ×1 · 4 introduced LOCargsert.ts ×1

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 4 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

lib/argsert.ts 4 introduced LOC · 1 range

Open complete file

46 const totalCommands = parsed.demanded.length + parsed.optional.length;
47 if (length > totalCommands) {
48 > throw new YError( argsert.ts
49 > `Too many arguments provided. Expected max ${totalCommands} but received ${length}.`
50 > );
51 > }
52
53 parsed.demanded.forEach(demanded => {