command.ts ×2
Frontier kind: Code frontier
unlabeled · c_5f03f3e8114d
67 tests · 2320 LOC · 18 files · introduces 0 tests · 3 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
2 ranges 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.
command.ts ×2 — Focused concept
Introduced files:
yargs.mjs|title=yargs dsl tests positional populates array with appropriate arguments|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments does not combine positional default and provided values|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments does not overwrite options in argv if variadic|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
yargs.mjs|title=yargs dsl tests positional allows positional arguments for subcommands to be configured|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests positional allows a default to be set|occurrence=1, yargs.mjs|title=yargs dsl tests positional defaults array with no arguments to []|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests positional allows a number type to be specified|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests positional allows a string type to be specified|occurrence=1, yargs-test.mjs|title=ESM bug #1758 does not drop .0 if positional is configured as string|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests positional allows an alias to be provided|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests usage for default command positional should contain the expected output for showHelp|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests positional allows a boolean type to be specified|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests .coerce() returns camelcase args for a command|occurrence=1, yargs.mjs|title=yargs dsl tests .coerce() supports positional and variadic args for a command|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async argv caches deeply nested help output, so that it can be output by showHelp()|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async argv caches nested help output, so that it can be output by showHelp()|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async argv returns promise that can be caught if rejected|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
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:
command.mjs|title=Command variadic allows camel-case, variadic arguments, and strict mode to be combined|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async parse caches deeply nested help output, so that it can be output by showHelp()|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests bug #1758 does not drop .0 if flag is configured as string|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests positional shows that variadic positional arguments are arrays|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async argv returns deeply nested promise that resolves argv on success|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async parse caches nested help output, so that it can be output by showHelp()|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
yargs.mjs|title=yargs dsl tests async parse calls parse callback once deeply nested promise has resolved|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
yargs.mjs|title=yargs dsl tests positional allows a defaultDescription to be set|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async argv returns promise that resolves argv on success|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
command.mjs|title=Command positional aliases allows variadic and positional arguments to be combined|occurrence=1 — Ancestor (broader)
Introduced tests:
command.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
command.mjs|title=Command positional aliases allows an alias to be defined for a required positional argument|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional aliases allows several aliases to be defined for a required positional argument|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments handles -- in conjunction with positional arguments|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command variadic allows optional arguments to be variadic|occurrence=1, command.mjs|title=Command variadic does not fail if zero optional arguments are provided|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
yargs.mjs|title=yargs dsl tests async parse calls parse callback once async handler has resolved|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments populates outer argv with positional arguments when unknown-options-as-args is set|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command missing positional arguments does not fail if optional argument is missing|occurrence=1, command.mjs|title=Command positional arguments populates argv with camel-case variants of arguments when possible|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments continues to support populate-- for commands, post #1457|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments populates subcommand's inner argv with positional arguments|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional aliases allows an alias to be defined for an optional positional argument|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional aliases allows several aliases to be defined for an optional positional argument|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments populates inner argv with positional arguments|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests positional displays choices array|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests positional displays type information|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests positional displays aliases appropriately|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command global parsing hints defaults applies defaults globally|occurrence=1 — Ancestor (broader)
Introduced tests:
usage.mjs|title=usage tests positional should display help section for positionals|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command does not require builder function to return|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments does not load config twice when command executed|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments does not overwrite options in argv if variadic and preserves falsy values|occurrence=1 — Ancestor (broader)
Introduced tests:
command.mjs|title=Command positional arguments does not overwrite options in argv if variadic and when using default command|occurrence=1 — Ancestor (broader)
Introduced tests:
command.ts ×2 — Ancestor (broader)
Introduced files:
completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices for first positional|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices for nested command|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices for second positional after option|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) options choices should not be display with positional choices|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices for positional with prefix|occurrence=1 — Ancestor (broader)
Introduced tests:
completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) works if positional has no choices|occurrence=1 — Ancestor (broader)
Introduced tests:
yargs-factory.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
command.mjs|title=Command default commands allows $0 as an alias for a default command|occurrence=1 — Ancestor (broader)
Introduced tests:
command.ts ×1 — Ancestor (broader)
Introduced files:
command.ts ×1 — Ancestor (broader)
Introduced files:
command.ts ×3 — Descendant (narrower)
Introduced files:
command.ts ×12 — Descendant (narrower)
Introduced files:
command.ts ×1 — Descendant (narrower)
Introduced files:
command.ts ×2 — Descendant (narrower)
Introduced files:
command.ts ×1 — Descendant (narrower)
Introduced files:
usage.ts ×1 — Descendant (narrower)
Introduced files:
usage.ts ×2 — 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:
command.ts ×2 — Descendant (narrower)
Introduced files:
usage.ts ×2 — Descendant (narrower)
Introduced files:
command.ts ×1 — Descendant (narrower)
Introduced files:
command.ts ×5 — Descendant (narrower)
Introduced files:
command.ts ×1 — Descendant (narrower)
Introduced files:
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
command.ts ×1 — Descendant (narrower)
Introduced files:
command.ts ×3 — 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 ×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: 3 introduced LOC across 2 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
lib/command.ts 3 introduced LOC · 2 ranges
Open complete file
612
613
parsed . optional . forEach ( o => {
615
>
if ( o . variadic ) {
616
parseOptions . array . push ( cmd );
617
parseOptions . default [ cmd ] = [];
618
}
619
>
parseOptions . alias [ cmd ] = aliases ;
command.ts
620
});
621