command.ts ×1
Frontier kind: Code frontier
unlabeled · c_5f784c78cf23
390 tests · 1962 LOC · 18 files · introduces 0 tests · 1 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
- Code
- 1 range1 lines · 1 files
- Tests
- 0 tests
Contains — complete concept membership
- All code (extent)
- 352 ranges1962 lines · 18 files · Browse complete extent
- All tests (intent)
- 390 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.
- 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.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
- command.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 choices array 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:
- command.mjs|title=Command async builder allows positionals to be configured asynchronously|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests command accepts a module with a 'builder' and 'handler' key|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:
- usage.mjs|title=usage tests default command should display help output for nested default command on failure|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- middleware.mjs|title=middleware applyBeforeValidation=true resolves async middleware, before applying validation|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command help command displays command help appropriately|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware applyBeforeValidation=true applies aliases before middleware is called, for global middleware|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command should kick along [demand] configuration to commands|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:
- middleware.mjs|title=middleware applyBeforeValidation=true runs before validation|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 strictOptions allows strict options to be turned off|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:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: 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:
- usage.mjs|title=usage tests when exitProcess is false fail() is invoked with yargs instance as third argument|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 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 global parsing hints validation allows each builder to specify own middleware|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:
- validation.mjs|title=validation tests requiresArg does not fail if argument with required value is not provided to subcommand|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:
- usage.mjs|title=usage tests positional shows that variadic positional arguments are arrays|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-test.mjs|title=ESM hierarchy of commands allows array of commands to be registered|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:
-
command.mjs|title=Command allows an array of commands to be provided|occurrence=1, yargs-test.mjs|title=ESM hierarchy of commands allows array of subcommands to be registered|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/yargs-test.mjs|title=ESM hierarchy of commands allows array of subcommands to be registered|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command allows an array of commands to be provided|occurrence=1
- usage.mjs|title=usage tests positional indicates that <foo> positional arguments are required|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:
- command.mjs|title=Command async returns promise that resolves arguments once handler succeeds|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:
- 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:
- usage.mjs|title=usage tests help message caching should display proper usage when an async handler fails|occurrence=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:
-
validation.mjs|title=validation tests strictCommands fails with error if inner command is unknown|occurrence=1, validation.mjs|title=validation tests strictCommands allows strictCommands to be applied to inner commands|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests strictCommands allows strictCommands to be applied to inner commands|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests strictCommands fails with error if inner command is unknown|occurrence=1
- yargs.mjs|title=yargs dsl tests command accepts an object for describing a command's options|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:
- 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:
- 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 defaultDescription using positional() without default() should output given desc without default value|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests positional should display help section for positionals|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:
- usage.mjs|title=usage tests commands preserves global wrap() for commands that do not override it|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests strictCommands does not apply implicit strictCommands to inner commands|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 bubble errors thrown by coerce function inside commands|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests commands allows a command to override global wrap()|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware runs all middleware before reaching the handler|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x) in a sub-command|occurrence=1, usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x, string) in a sub-command|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x) in a sub-command|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x, string) in a sub-command|occurrence=1
-
usage.mjs|title=usage tests deprecate options using .option(x, {deprecate: [boolean%7Cstring]}) {deprecated: string} in sub-command|occurrence=1, usage.mjs|title=usage tests deprecate options using .option(x, {deprecate: [boolean%7Cstring]}) {deprecated: boolean} in sub-command|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests deprecate options using .option(x, {deprecate: [boolean%7Cstring]}) {deprecated: boolean} in sub-command|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests deprecate options using .option(x, {deprecate: [boolean%7Cstring]}) {deprecated: string} in sub-command|occurrence=1
- yargs.mjs|title=yargs dsl tests getHelp should use cached help message for nested synchronous commands|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests strictCommands succeeds in parse if top level and inner command are known|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests strictCommands succeeds in parse if command is known|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- middleware.ts ×1 — Ancestor (broader) Introduced files:
- command.ts ×1 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands does not invoke command handler if output is populated|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, …) options choices should not be display with positional choices|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware applyBeforeValidation=true still throws error when async middleware is used|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests default command should display positionals that have been configured|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command commandDir allows ESM modules commands to be extensible using visit option|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:
- command.mjs|title=Command commandDir allows commands files to be written as ESM modules|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests choices fails when demandOption is true and choice is not provided|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests command skips executing root-level command if builder's help is executed|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:
- command.mjs|title=Command commandDir detects and ignores cyclic dir references|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests commands allows completion command to be hidden|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests commands should not show hidden commands|occurrence=1, usage.mjs|title=usage tests commands should output a list of available commands|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests commands should not show hidden commands|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests commands should output a list of available commands|occurrence=1
- command.ts ×1 — Ancestor (broader) Introduced files:
-
validation.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests command recommends a similar command if no command handler is found|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests command recommends the longest match first|occurrence=1
- command.mjs|title=Command global parsing hints groups should apply custom option groups globally|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- command.mjs|title=Command global parsing hints describe flags an option as global if a description is set|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests commands allows a builder to add more than one usage with multiple usage calls|occurrence=1 — Ancestor (broader) Introduced tests:
-
command.mjs|title=Command builder helpOrVersionSet --help|occurrence=1, command.mjs|title=Command async builder helpOrVersionSet --help|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command async builder helpOrVersionSet --help|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command builder helpOrVersionSet --help|occurrence=1
- command.mjs|title=Command builder helpOrVersionSet help|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands populates output appropriately when parse is called multiple times|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests .coerce() allows an error from positional arg to be handled by fail() handler|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- command.mjs|title=Command async builder does not print to stdout when parse callback is provided|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests when exitProcess is false fail() when command() throws error fail() is called with the original error object as the second parameter|occurrence=1 — Ancestor (broader) Introduced tests:
- completion, --get-yargs-completions, …) completes choices for nested command|occurrence=1 — Ancestor (broader) Introduced tests:
- completion, --get-yargs-completions, …) options choices should not be display with positional choices|occurrence=1 — Ancestor (broader) Introduced tests:
- completion, --get-yargs-completions, …) completes choices for positional with prefix|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×2 — Ancestor (broader) Introduced files: Introduced tests:
- yargs.mjs|title=yargs dsl tests locale handles a missing locale|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×2 — Ancestor (broader) Introduced files: Introduced tests:
- completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) ignores positionals for the correct command|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests locale allows a locale other than the default 'en' to be specified|occurrence=1 — Ancestor (broader) Introduced tests:
- $0 if it has no aliases|occurrence=1 — Ancestor (broader) Introduced tests:
- completion, --get-yargs-completions, …) works if positional has no choices|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests command does not print command recommendation if help message will be shown|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.ts ×1 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests showHelp should not run handler or middleware|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- command.ts ×3 — Ancestor (broader) Introduced files:
- command.ts ×3 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests getHelp should not run handler or middleware|occurrence=1 — Ancestor (broader) Introduced tests:
- completion, --get-yargs-completions, …) completes choices if previous option requires a choice and a partial choice has been entered|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- completion, --get-yargs-completions, …) completes choices if previous option requires a choice|occurrence=1 — Ancestor (broader) Introduced tests:
-
command.mjs|title=Command commandDir supports absolute dirs|occurrence=1, command.mjs|title=Command commandDir supports relative dirs|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command commandDir supports a "recurse" boolean option|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command commandDir supports absolute dirs|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command commandDir supports relative dirs|occurrence=1
- command.mjs|title=Command deprecated command using arg shows deprecated notice with boolean|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command deprecated command using arg shows deprecated notice with string|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.ts ×2 — Ancestor (broader) Introduced files:
- validation.mjs|title=validation tests strictOptions succeeds if option is known and command is unknown|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:
- usage.ts ×3 — Ancestor (broader) Introduced files:
-
usage.mjs|title=usage tests scriptName should display user supplied scriptName|occurrence=1, usage.mjs|title=usage tests scriptName should not alter the user supplied scriptName|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests scriptName should display user supplied scriptName|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests scriptName should not alter the user supplied scriptName|occurrence=1
- completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices if previous option or one of its aliases requires a choice and a partial choice has been entered|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests parse parses process.parse() if no arguments are provided|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices if previous option or one of its aliases requires a choice|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices if previous option requires a choice and a partial choice has been entered|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 if previous option requires a choice and space has been entered|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices if previous option requires a choice|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests getHelp should display top-level help with no command given|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.ts ×1 — Ancestor (broader) Introduced files:
- completion.ts ×1 — Ancestor (broader) Introduced files:
- command.ts ×1 — Ancestor (broader) Introduced files:
- completion.ts ×3 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- command.mjs|title=Command global parsing hints version applies version globally|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command builder helpOrVersionSet --version|occurrence=1 — Ancestor (broader) Introduced tests:
- o filter|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests requiresArg does not fail if argument with required value is not provided|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests strictCommands fails with error if command is unknown|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion bash avoids interruption from command recommendations|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion zsh avoids interruption from command recommendations|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion zsh returns a list of commands as completion suggestions|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- completion, --get-yargs-completions, …) avoids repeating already included commands|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×2 — Ancestor (broader) Introduced files:
- command.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×3 — Ancestor (broader) Introduced files:
- command.ts ×1 — Ancestor (broader) Introduced files:
- middleware.mjs|title=middleware should run even if no command is matched|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files:
- completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) works if command has no options|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests command does not recommend a similar command if no similar command exists|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files:
- levenshtein.ts ×2 — Ancestor (broader) Introduced files:
- command.ts ×1 — Ancestor (broader) Introduced files:
- command.mjs|title=Command should not execute command if it is preceded by another positional argument|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) avoids repeating already included commands|occurrence=1 — Ancestor (broader) Introduced tests:
-
completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) does not complete hidden commands|occurrence=1, completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) does not include positional arguments|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) does not complete hidden commands|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) does not include positional arguments|occurrence=1
-
completion.mjs|title=Completion parser-configuration should support strip-dashed|occurrence=1, completion.mjs|title=Completion parser-configuration should support camel-case-expansion strip-aliased|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion parser-configuration should support camel-case-expansion strip-aliased|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion parser-configuration should support strip-dashed|occurrence=1
- validation.ts ×3 — Ancestor (broader) Introduced files:
- completion.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests locale does not enter infinite loop when locale is invalid|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- completion.mjs|title=Completion async getCompletion allows completions to be awaited|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion bash getCompletion() returns default completion to callback|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion zsh getCompletion() returns default completion to callback|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.ts ×2 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- completion.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×6 — Ancestor (broader) Introduced files:
- command.ts ×1 — Ancestor (broader) Introduced files:
- completion.ts ×1 — Ancestor (broader) Introduced files:
- completion.ts ×3 — Ancestor (broader) Introduced files:
- yargs-factory.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-factory.ts ×3 — Ancestor (broader) Introduced files:
- completion.ts ×4 — Ancestor (broader) Introduced files:
- command.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×2 — Ancestor (broader) Introduced files:
-
command.mjs|title=Command API accepts module (with builder object and handler function) as 3rd argument|occurrence=1, command.mjs|title=Command API accepts module (with builder function and handler function) as 3rd argument|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command API accepts module (with builder function and handler function) as 3rd argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command API accepts module (with builder object and handler function) as 3rd argument|occurrence=1
-
command.mjs|title=Command API accepts module (desc key, builder function) as 1st argument|occurrence=1, command.mjs|title=Command API accepts module (description key, builder function) as 1st argument|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command API accepts module (desc key, builder function) as 1st argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command API accepts module (description key, builder function) as 1st argument|occurrence=1
-
command.mjs|title=Command API accepts module (missing handler function) as 1st argument|occurrence=1, command.mjs|title=Command API accepts module (describe key, builder object) as 1st argument|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command API accepts module (describe key, builder function) as 1st argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command API accepts module (describe key, builder object) as 1st argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command API accepts module (missing handler function) as 1st argument|occurrence=1
- command.mjs|title=Command API accepts module (missing describe, builder function) as 1st argument|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command API accepts deprecated as 5th argument|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command API accepts module (false describe, builder function) as 1st argument|occurrence=1 — Ancestor (broader) Introduced tests:
-
command.mjs|title=Command API accepts function as 3rd argument|occurrence=1, command.mjs|title=Command ignores extra spaces in command string|occurrence=1, +2 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command API accepts function as 3rd argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command API accepts options object as 3rd argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command ignores extra spaces in command string|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command positional arguments parses command string and populates optional and required positional arguments|occurrence=1
- command.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- command.mjs|title=Command API accepts string, string as first 2 arguments|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.ts ×2 — Ancestor (broader) Introduced files:
- command.mjs|title=Command API accepts string, boolean as first 2 arguments|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×3 — Ancestor (broader) Introduced files:
- command.ts ×1 — Ancestor (broader) Introduced files:
- command.ts ×3 — Ancestor (broader) Introduced files:
- command.ts ×5 — Descendant (narrower) Introduced files:
- command.ts ×3 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×35 — Descendant (narrower) Introduced files:
-
yargs-factory.ts ×124 — Descendant (narrower)
Introduced files:
- lib/command.ts
- lib/completion-templates.ts
- lib/completion.ts
- lib/middleware.ts
- lib/usage.ts
- lib/utils/levenshtein.ts
- lib/utils/maybe-async-result.ts
- lib/utils/set-blocking.ts
- lib/validation.ts
- lib/yargs-factory.ts
- 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:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/argsert.mjs|title=Argsert allows for any type if * is provided|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/argsert.mjs|title=Argsert should ignore trailing undefined values|occurrence=1
- 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:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/helpers.mjs|title=helpers Parser exposes functional argument parser|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/parser.mjs|title=should expose yargs-parser as Parser|occurrence=1
- 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:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/platform-shim-test.mjs|title=platform-shim y18n __ behaves like sprintf|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/platform-shim-test.mjs|title=platform-shim y18n __n uses first string if singular|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/platform-shim-test.mjs|title=platform-shim y18n __n uses second string if plural|occurrence=1
- 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: 1 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.