usage.mjs|title=usage tests $0 is detected correctly for a basic script|occurrence=1, usage.mjs|title=usage tests $0 is detected correctly when dirname contains "iojs"|occurrence=1, +1
Frontier kind: Test frontier
unlabeled · c_f2024b1f6dac
334 tests · 1903 LOC · 18 files · introduces 3 tests · 0 LOC · 0 files
Introduces — evidence that enters the hierarchy at this concept
- Code
- 0 ranges0 lines · 0 files
- Tests
- 3 tests
Contains — complete concept membership
- All code (extent)
- 343 ranges1903 lines · 18 files · Browse complete extent
- All tests (intent)
- 334 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.
-
usage.mjs|title=usage tests $0 is detected correctly for a basic script|occurrence=1, usage.mjs|title=usage tests $0 is detected correctly when dirname contains "iojs"|occurrence=1, +1 — Focused concept
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is detected correctly for a basic script|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is detected correctly when dirname contains "iojs"|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is detected correctly when dirname contains "node"|occurrence=1
- 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:
- 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 help command displays command help appropriately|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:
- command.mjs|title=Command should kick along [demand] configuration to commands|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command async displays error and appropriate help message when handler fails|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- yargs-factory.ts ×2 — Ancestor (broader) Introduced files: 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:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: 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 positional allows a defaultDescription to be set|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests positional indicates that <foo> positional arguments are required|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests default command should display options (with descriptions) on failed default command|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests demand options using .demand() no failure occurs if the required arguments and the required number of commands are provided|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests commands can bump up preserved groups|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests usage for default command default only should contain the expected output for showHelp, when exception occurs|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:
- 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:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands invokes command handler normally if no output is populated|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 displays aliases appropriately|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests positional should display help section for positionals|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.mjs|title=usage tests commands preserves global wrap() for commands that do not override it|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests usage for default command multiple should contain the expected output for showHelp when called from within handler|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.mjs|title=usage tests commands allows a command to override global wrap()|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 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:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests with strict() option set should fail given an option argument without a corresponding description|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests with strict() option set should fail given multiple option arguments without corresponding descriptions|occurrence=1
- 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:
- usage.mjs|title=usage tests wrap should wrap argument descriptions onto multiple lines|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests usage for default command default only should contain the expected output for showHelp when called from within handler|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests async builder positional should contain the expected output for --help|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:
- usage.mjs|title=usage tests usage for default command positional should contain the expected output for --help|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests commands allows a builder function to override default usage() string|occurrence=1 — Ancestor (broader) 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=1 — Ancestor (broader) Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files: 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:
- usage.mjs|title=usage tests commands does not display $0 twice when default commands are enabled|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
-
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
- usage.mjs|title=usage tests commands displays given command chain with positional args in default usage for subcommand with builder object|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests commands displays given command chain with positional args in default usage for subcommand with builder function|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:
- usage.mjs|title=usage tests should print a single line when failing and default is set for an alias|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests commands allows a builder to disable usage with null after multiple usage calls|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests should return a failure message when not enough non-hyphenated arguments are found after a demand count|occurrence=1 — Ancestor (broader) Introduced tests:
- max demanded count allows a customer error message to be provided|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests required arguments with requiresArg method should show a failure message if a required option is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- max demanded count outputs an error if '_' count is above max|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests required arguments with options object should show a failure message if a required option is missing|occurrence=1, usage.mjs|title=usage tests required arguments with options object should show a failure message if more than one required option is missing|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests required arguments with options object should show a failure message if a required option is missing|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests required arguments with options object should show a failure message if more than one required option is missing|occurrence=1
- max demanded count outputs an error if '_' count is below min|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests demand options should not show a custom message if msg is null|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.mjs|title=Completion bash does not complete hidden options for command|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests demand options using .demand() should show an error along with the missing arguments on demand fail|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests usage for default command multiple should contain the expected output for --help|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.mjs|title=usage tests should display a failed message when check condition fails|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests should display example on fail|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests wrap should wrap the usage string|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests epilogue replaces $0 in epilog string|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests epilogue should display an epilog message at the end of the usage instructions|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests epilogue supports multiple epilogs|occurrence=1
- usage.mjs|title=usage tests should display missing arguments when check fails with a thrown exception|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests wrap should wrap the left-hand-column if it takes up more than 50%25 of the screen|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.mjs|title=usage tests default command should display top-level help with no command given|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests wrap should align span columns when ansi colors are used in a description|occurrence=1, usage.mjs|title=usage tests wrap should align span columns when ansi colors are not used in a description|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests wrap should align span columns when ansi colors are not used in a description|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests wrap should align span columns when ansi colors are used in a description|occurrence=1
-
yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed argv as second argument|occurrence=1, yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed error as first argument|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed argv as second argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed error as first argument|occurrence=1
- yargs-factory.ts ×2 — Ancestor (broader) Introduced files: Introduced tests:
- yargs.mjs|title=yargs dsl tests command executes top-level help if no handled command is provided|occurrence=1 — Ancestor (broader) 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:
- usage.mjs|title=usage tests allows multiple option calls to not clobber description|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests when exitProcess is false when check fails with a thrown exception should display missing arguments once|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests .help() with .alias() uses multi-char (but not single-char) help alias as command|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests group allows an an option to be placed in an alternative group|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests help option should use 2 dashes for general 1-digit usage|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests help option should use single dashes for 1-digit boolean alias usage|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests usage for default command default only should contain the expected output for --help|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests defaultDescription using option() without default() should output given desc without default value|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests group allows group to be provided in the options object|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests hidden options --help should display all options except for hidden ones even in a group|occurrence=1, usage.mjs|title=usage tests hidden options --help should display all groups except for ones with only hidden options|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests hidden options --help should display all groups except for ones with only hidden options|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests hidden options --help should display all options except for hidden ones even in a group|occurrence=1
- usage.mjs|title=usage tests help option should use 2 dashes for multiple-digit alias usage|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests commands should list a module command only once|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x) should show [deprecated]|occurrence=1, usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x, string) should show [deprecated: string]|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) should show [deprecated]|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x, string) should show [deprecated: string]|occurrence=1
- usage.mjs|title=usage tests usage for default command multiple should contain the expected output for showHelp|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests choices should output choices when defined for non-hidden options|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests help option should use single dashes for 1-digit boolean key usage|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests group only displays a duplicated option once per group|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests array should indicate when an option is an array|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests commands displays aliases for commands that have them (no wrap)|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×3 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.mjs|title=usage tests commands displays aliases for commands that have them (with wrap)|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests help option when exitProcess is false should not validate arguments (nargs)|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests help option when exitProcess is false should not validate arguments (required argument)|occurrence=1 — Ancestor (broader) Introduced tests:
-
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, …) returns arguments as completion suggestion, if next contains '-'|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests parse parses process.parse() if no arguments are provided|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- 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|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
-
completion, --get-yargs-completions, …) ignores no- prefix flags when boolean-negation is not set|occurrence=1, completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) ignores no- prefix flags when boolean-negation is not set|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, …) ignores no- prefix flags when boolean-negation is not set|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(./completion, --get-yargs-completions, …) ignores no- prefix flags when boolean-negation is not set|occurrence=1
- usage.mjs|title=usage tests normalizeAliases should display 'required' string in help message if set for alias|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:
- completion.ts ×1 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests help option should not show both dashed and camelCase aliases|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests group does not print the 'Options:' group if no keys are in it|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion bash getCompletion() returns default completion to callback for options|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests default if a named function is provided, should use name rather than (generated-value)|occurrence=1, usage.mjs|title=usage tests default should indicate that the default is a generated-value, if function is provided|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests default if a named function is provided, should use name rather than (generated-value)|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests default should indicate that the default is a generated-value, if function is provided|occurrence=1
- usage.mjs|title=usage tests default serializes object and array defaults|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests demand option with boolean flag should not report missing required arguments when given an alias|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests default default-description take precedence if one is provided|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes short options with two dashes when the user already entered two dashes|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests showHelp should call the correct console.log method when specified|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests showHelp should show help regardless of whether argv has been called|occurrence=1, usage.mjs|title=usage tests showHelp should print the help using console.error when no arguments were specified|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests showHelp should print the help using console.error when no arguments were specified|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests showHelp should show help regardless of whether argv has been called|occurrence=1
- completion.ts ×2 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests normalizeAliases should display 'description' string in help message if set for alias|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests normalizeAliases should display 'type' string in help message if set for alias|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests usage for default command default only should contain the expected output for showhelp|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:
- common-types.ts ×1 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests group displays alias keys appropriately within a grouping|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests help option should display usage|occurrence=1 — Ancestor (broader) Introduced tests:
-
validation.mjs|title=validation tests config should be displayed in the help message|occurrence=1, validation.mjs|title=validation tests config should allow help message to be overridden|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests config should allow help message to be overridden|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests config should be displayed in the help message with its default name|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests config should be displayed in the help message|occurrence=1
- usage.mjs|title=usage tests should add --help as an option for printing usage text if help() is called without arguments|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed output as third argument|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests group allows multiple options to be grouped at the same time|occurrence=1 — Ancestor (broader) Introduced tests:
- completion.mjs|title=Completion zsh avoids interruption from command recommendations|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:
- usage.mjs|title=usage tests wrap should not indent usage when no wrap is specified|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.mjs|title=usage tests allows setting help and version with aliases and custom description|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:
- command.mjs|title=Command commandDir supports a "visit" function option|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests locale uses locale string for help option default desc on .help().locale()|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×4 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.mjs|title=usage tests group allows a group to be provided as the only information about an option|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
-
yargs.mjs|title=yargs dsl tests .help() enables `--help` option and `help` command with `true` argument|occurrence=1, yargs.mjs|title=yargs dsl tests .help() enables given string as help option and command with custom description with two string arguments|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests .help() enables `--help` option and `help` command with `true` argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests .help() enables given string as help option and command with custom description with two string arguments and `true` argument|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests .help() enables given string as help option and command with custom description with two string arguments|occurrence=1
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse does not print to stdout|occurrence=1 — Ancestor (broader) Introduced tests:
- 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 .help() enables `--help` option and `help` command without arguments|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:
- completion.ts ×1 — Ancestor (broader) Introduced files:
- levenshtein.ts ×2 — Ancestor (broader) Introduced files:
- max demanded count shouldn't interpret the second argument as a max when it is an array|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests when exitProcess is false fail() is called with the original error message as the first parameter|occurrence=1, usage.mjs|title=usage tests when exitProcess is false fail() when check() throws error fail() is called with the original error object as the second parameter|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests when exitProcess is false fail() is called with the original error message as the first parameter|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests when exitProcess is false fail() when check() throws error fail() is called with the original error object as the second parameter|occurrence=1
- max range|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests should return a valid result when demanding a count of non-hyphenated values|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests should not require config object for an option|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests should return valid values when check passes|occurrence=1, usage.mjs|title=usage tests should return a valid result when check condition passes|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests should return a valid result when check condition passes|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests should return valid values when check passes|occurrence=1
- usage.mjs|title=usage tests demand options should return valid values when demand passes|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- 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:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×4 — Ancestor (broader) Introduced files:
- completion.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests should not print usage string if help() is called without arguments|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests should return a valid result when default is set for an alias|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests should allow you to set default values for a hash of options|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests should return a valid result when setting defaults for singles|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests version option when exitProcess is false should not validate arguments (required argument)|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests version option should default to 'version' as version option|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- usage.mjs|title=usage tests version option should display version|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests version option when exitProcess is false should not validate arguments (nargs)|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- completion.ts ×2 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- completion.ts ×4 — Ancestor (broader) Introduced files:
- usage.ts ×2 — Ancestor (broader) Introduced files:
- completion.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×2 — Ancestor (broader) Introduced files:
- usage.mjs|title=usage tests showVersion should call the correct console.log method when specified|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests showVersion should show version regardless of whether argv has been called|occurrence=1 — Ancestor (broader) Introduced tests:
-
completion.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion bash generateCompletionScript() replaces application variable with $0 in script|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion generateCompletionScript() allows $0 and cmd to be set|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion generateCompletionScript() if $0 has a .js extension, a ./ prefix is added|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion zsh replaces application variable with $0 in script|occurrence=1
- yargs-factory.ts ×1 — 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.
3 tests introduced at this concept.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
No code is introduced at this concept. Its 343 extent ranges are introduced by other concepts.