yargs-factory.ts ×1
Frontier kind: Code frontier
unlabeled · c_b902e2d0f57e
45 tests · 1930 LOC · 18 files · introduces 0 tests · 3 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
1 range 3 lines · 1 files
Tests
0 tests
Contains — complete concept membership
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.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
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.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
yargs-factory.ts ×1 — Focused concept
Introduced files:
yargs.mjs|title=yargs dsl tests positional allows an implied argument to be specified|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests positional allows a conflicting argument to be specified|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
validation.mjs|title=validation tests conflicts should not fail if argument with conflict is provided, but not the argument it conflicts with|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests conflicts should not fail if conflicting argument is provided, without argument with conflict|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command commandDir supports nested subcommands|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests commands can bump up preserved groups|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests .coerce() supports a global option within command|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests commands should display global non empty groups for subcommands|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests commands allows global option to be disabled|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests commands should display global non empty groups for commands|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command global parsing hints validation applies conflicts logic for command by default|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests commands can add to preserved groups|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command global parsing hints validation resets conflicts logic for command if global is false|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command global parsing hints validation resets implies logic for command if global is false|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command preserves top-level envPrefix|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
yargs.mjs|title=yargs dsl tests accepts an object for implies|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests implies allows key to be specified with option shorthand|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests conflicts allows key to be specified with option shorthand|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
validation.mjs|title=validation tests implies fails if '_' populated, and implied argument not set|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests implies fails if --no-foo's implied argument is not set|occurrence=1, validation.mjs|title=validation tests implies fails if implied key (with "no" in the name) is given when it should not|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
yargs.mjs|title=yargs dsl tests a function can be provided, to execute when a parsing failure occurs|occurrence=1, validation.mjs|title=validation tests implies fails if implied key (with "no" in the name) is not set|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests conflicts takes into account aliases when applying conflicts logic|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests conflicts fails if argument is supplied along with either conflicting argument|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests conflicts should fail if alias of conflicting argument is provided|occurrence=1, validation.mjs|title=validation tests conflicts should fail if alias of argument with conflict is provided|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests conflicts allows an object to be provided defining conflicting option pairs|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests conflicts should use appropriate translation|occurrence=1, validation.mjs|title=validation tests conflicts fails if both arguments are supplied|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
validation.mjs|title=validation tests implies doesn't fail if implied key (with "no" in the name) is set|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests implies doesn't fail if implied key exists with value 0|occurrence=1, validation.mjs|title=validation tests implies doesn't fail if implied key exists with value false|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
validation.ts ×2 — Ancestor (broader)
Introduced files:
validation.ts ×1 — Ancestor (broader)
Introduced files:
validation.ts ×5 — Ancestor (broader)
Introduced files:
validation.ts ×2 — Ancestor (broader)
Introduced files:
yargs.mjs|title=yargs dsl tests reset should put yargs back into its initial state|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests global does not reset alias of global option|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests global does not reset a global options when reset is called|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests global should not reset implications of global options|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
validation.ts ×3 — Ancestor (broader)
Introduced files:
yargs.mjs|title=yargs dsl tests global should not reset usage descriptions of global options|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
validation.ts ×3 — Ancestor (broader)
Introduced files:
yargs-factory.ts ×3 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×35 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×124 — Descendant (narrower)
Introduced files:
Introduced tests:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
argsert.mjs|title=Argsert allows for any type if * is provided|occurrence=1, argsert.mjs|title=Argsert should ignore trailing undefined values|occurrence=1 — Descendant (narrower)
Introduced tests:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
argsert.ts ×2 — Descendant (narrower)
Introduced files:
argsert.ts ×3 — Descendant (narrower)
Introduced files:
parse-command.ts ×1 — Descendant (narrower)
Introduced files:
parse-command.ts ×1 — Descendant (narrower)
Introduced files:
parse-command.ts ×3 — Descendant (narrower)
Introduced files:
process-argv.ts ×1 — Descendant (narrower)
Introduced files:
process-argv.ts ×3 — Descendant (narrower)
Introduced files:
argsert.ts ×1 — Descendant (narrower)
Introduced files:
apply-extends.ts ×4 — Descendant (narrower)
Introduced files:
Introduced tests:
argsert.ts ×4 — Descendant (narrower)
Introduced files:
obj-filter.ts ×2 — Descendant (narrower)
Introduced files:
argsert.ts ×3 — Descendant (narrower)
Introduced files:
common-types.ts ×4 — Descendant (narrower)
Introduced files:
process-argv.ts ×5 — Descendant (narrower)
Introduced files:
Introduced tests:
parse-command.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
parse-command.ts ×2 — Descendant (narrower)
Introduced files:
yerror.ts ×2 — Descendant (narrower)
Introduced files:
is-promise.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 3 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
lib/yargs-factory.ts 3 introduced LOC · 1 range
Open complete file
837
globals = ([] as string []). concat ( globals );
838
if ( global !== false ) {
840
>
l => globals . indexOf ( l ) === - 1
841
>
);
842
} else {
843
globals . forEach ( g => {