yargs-factory.ts ×1
Frontier kind: Code frontier
unlabeled · c_a77f81c2010e
53 tests · 2220 LOC · 18 files · introduces 0 tests · 4 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
1 range 4 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 function passed as second argument to parse commands preserves top-level config when parse is called multiple times|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
command.mjs|title=Command global parsing hints coerce should not add aliases to argv if strip-aliased config is true|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests with strict() option set should wrap whitespace in quotes if provided as an unknown argument|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests strict mode does not fail when unrecognized option is passed after --|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests default command should display help output for nested default command on failure|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command global parsing hints strict does not fire command if validation fails|occurrence=1 — Ancestor (broader)
Introduced tests:
string|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests demand should recognize context variables in strict mode, when running sub-commands|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests demand fails in strict mode with extra positionals|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command should allow positional arguments for inner commands in strict mode, when no handler is provided|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests demand should recognize context variables in strict mode|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command global parsing hints strict does not fail strict check due to positional command arguments|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command variadic allows camel-case, variadic arguments, and strict mode to be combined|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command global parsing hints strict does not fail strict check due to positional command arguments in nested commands|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command async builder allows deeply nested command to be defined in async builder|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
command.mjs|title=Command async builder allows command to be defined in async builder|occurrence=1 — Ancestor (broader)
Introduced tests:
command.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
usage.mjs|title=usage tests default command should display options (with descriptions) on failed default command|occurrence=1 — Ancestor (broader)
Introduced tests:
middleware.mjs|title=middleware applyBeforeValidation=true does not cause an unexpected error when async middleware and strict are both used|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests strict mode does not fail when command with subcommands called|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on globally|occurrence=1, usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on command and globally (priority given to command message)|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on to command|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
command.mjs|title=Command default commands strict allows default command aliases, when strict mode is enabled|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command global parsing hints strict can be enabled just for a command|occurrence=1, command.mjs|title=Command global parsing hints strict applies strict globally by default|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests with strict() option set should fail given an option argument without a corresponding description|occurrence=1, usage.mjs|title=usage tests with strict() option set should fail given multiple option arguments without corresponding descriptions|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests demand fails in strict mode with extra positionals for default command|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command global parsing hints strict allows a command to override global`|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
usage.mjs|title=usage tests demand options using .demand() missing argument message given if one command, but an argument not on the list is provided|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests demand options using .demand() missing command message if all the required arguments exist, but not enough commands are provided|occurrence=2 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests demand options using .demand() missing command message if all the required arguments exist, but not enough commands are provided|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command default commands strict executes default command when strict mode is enabled|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion zsh does not apply validation when --get-yargs-completions is passed in|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion bash does not apply validation when --get-yargs-completions is passed in|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests demand fails in strict mode with invalid command|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests defaults should not fail when demanded options with defaults are missing|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests strict mode does not fail for hidden options but does for unknown arguments|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests with strict() option set with hyphens in options accepts mixed options with values|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests with strict() option set should pass given option arguments with corresponding descriptions|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests strict mode does not fail if an alias is provided, rather than option itself|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests with strict() option set with hyphens in options works with aliases|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests strict mode does not fail for hidden options|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests with strict() option set with hyphens in options accepts valid options|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
validation.mjs|title=validation tests demand does not fail in strict mode when no commands configured|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.mjs|title=validation tests demand fails because of undefined command and not because of argument after --|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
usage.mjs|title=usage tests with strict() option set with hyphens in options fails when an invalid argument is provided|occurrence=1 — Ancestor (broader)
Introduced tests:
validation.ts ×2 — Ancestor (broader)
Introduced files:
validation.ts ×2 — Ancestor (broader)
Introduced files:
validation.ts ×3 — Ancestor (broader)
Introduced files:
yargs-factory.ts ×2 — Descendant (narrower)
Introduced files:
usage.ts ×2 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×2 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×2 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×5 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×5 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×5 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×2 — Descendant (narrower)
Introduced files:
usage.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×9 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×2 — Descendant (narrower)
Introduced files:
command.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — 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:
is-promise.ts ×2 — 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: 4 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
lib/yargs-factory.ts 4 introduced LOC · 1 range
Open complete file
1354
}
1355
strict ( enabled? : boolean ) : YargsInstance {
1357
>
this . # strict = enabled !== false ;
1358
>
return this ;
1359
>
}
1360
strictCommands ( enabled? : boolean ) : YargsInstance {
1361
argsert ( '[boolean]' , [ enabled ], arguments . length );