yargs.mjs|title=yargs dsl tests showHidden should have a default show-hidden private option pre-configured|occurrence=1, yargs.mjs|title=yargs dsl tests showHidden should not have show-hidden as an actual option described by default|occurrence=1
Frontier kind: Test frontier
unlabeled · c_ef411dddd02a
395 tests · 1904 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
Introduces — evidence that enters the hierarchy at this concept
- Code
- 0 ranges0 lines · 0 files
- Tests
- 2 tests
Contains — complete concept membership
- All code (extent)
- 344 ranges1904 lines · 18 files · Browse complete extent
- All tests (intent)
- 395 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.
-
yargs.mjs|title=yargs dsl tests showHidden should have a default show-hidden private option pre-configured|occurrence=1, yargs.mjs|title=yargs dsl tests showHidden should not have show-hidden as an actual option described by default|occurrence=1 — Focused concept
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests showHidden should have a default show-hidden private option pre-configured|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests showHidden should not have show-hidden as an actual option described by default|occurrence=1
- command.mjs|title=Command global parsing hints coerce should not be applied multiple times for nested commands|occurrence=1 — Ancestor (broader) Introduced tests:
- 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 function passed as second argument to parse commands preserves top-level config when parse is called multiple times|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests positional allows a coerce method to be provided|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests parse can be called multiple times with the same behavior|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests positional allows normalize to be specified|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: 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 positional does not parse large scientific notation values, when type string|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints coerce should not add aliases to argv if strip-aliased config is true|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests strict mode does not fail when unrecognized option is passed after --|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 help message caching should not display a cached help message for the next parsing|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware applyBeforeValidation=true resolves async middleware, before applying validation|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests command accepts a module with a keys 'command', 'describe', 'builder', and 'handler'|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:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests positional allows a default to be set|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests positional defaults array with no arguments to []|occurrence=1
- 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 an alias to be provided|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- yargs.mjs|title=yargs dsl tests positional allows a boolean type to be specified|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 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:
- validation.mjs|title=validation tests demand fails in strict mode with extra positionals|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:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests .coerce() returns camelcase args for a command|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests .coerce() supports positional and variadic args for a command|occurrence=1
- 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:
- middleware.mjs|title=middleware async calls the command handler when all middleware promises resolve|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- command.mjs|title=Command global parsing hints coerce defaults to applying coerce rules globally|occurrence=1 — Ancestor (broader) Introduced tests:
-
validation.mjs|title=validation tests choices succeeds when demandOption is false and no choice is provided|occurrence=1, validation.mjs|title=validation tests choices succeeds when demandOption is not provided and no choice is provided|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests choices succeeds when demandOption is false and no choice is provided|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests choices succeeds when demandOption is not provided and no choice is provided|occurrence=1
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- command.mjs|title=Command global parsing hints validation applies demandOption globally|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware async check failure allows error to be caught before calling command and middleware|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:
- 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:
- command.mjs|title=Command global parsing hints strict does not fail strict check due to positional command arguments in nested commands|occurrence=1 — Ancestor (broader) Introduced tests:
- 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:
- 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:
- command.mjs|title=Command async builder allows command to be defined in async builder|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command missing positional arguments fails if a required argument is missing|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:
- command.mjs|title=Command positional arguments does not overwrite existing values in argv for keys that are not positional|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:
- command.mjs|title=Command global parsing hints validation resets custom check if global is false|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware async check success allows async check to be used with command and middleware|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:
- command.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
-
command.mjs|title=Command allows builder function to return parsed argv|occurrence=1, command.mjs|title=Command allows builder function to parse argv without returning|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command allows builder function to parse argv without returning|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command allows builder function to return parsed argv|occurrence=1
- 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 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:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command positional arguments populates argv with camel-case variants of variadic args when possible|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command variadic allows optional arguments to be variadic|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command variadic does not fail if zero optional arguments are provided|occurrence=1
- 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:
- command.mjs|title=Command default commands allows command to be run when alias is default command|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints aliases defaults to applying aliases globally|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demand interprets max relative to command|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests demand interprets min relative to command|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command default commands does not execute default command if another command is provided|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command executes a command via alias|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:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command missing positional arguments does not fail if optional argument is missing|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command positional arguments populates argv with camel-case variants of arguments when possible|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command positional arguments populates outer argv with positional arguments when unknown-options-as-args is not set|occurrence=1
- 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 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:
- command.mjs|title=Command variadic allows required arguments to be variadic|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware async fails when the promise returned by the middleware rejects|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
- command.mjs|title=Command handles positional arguments if command is invoked using .parse()|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests .coerce() supports a global option within command|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints types applies choices type globally|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command variadic only allows the last argument to be variadic|occurrence=1 — Ancestor (broader) Introduced tests:
-
yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands allows context object to be passed to parse|occurrence=1, yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands does not fail if context object has cyclical reference|occurrence=1, +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 commands allows context object to be passed to parse|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands does not fail if context object has cyclical reference|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands overwrites the prior context object, when parse is called multiple times|occurrence=1
-
command.mjs|title=Command builder helpOrVersionSet cmd|occurrence=1, yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands populates argv appropriately when parse is called multiple times|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/command.mjs|title=Command builder helpOrVersionSet cmd|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands populates argv appropriately when parse is called multiple times|occurrence=1
- middleware.mjs|title=middleware async check success allows async check to be used with command|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware async coerce allows two commands to register different coerce methods|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:
- command.mjs|title=Command global parsing hints defaults applies defaults globally|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files:
- middleware.mjs|title=middleware async calls an async middleware only once for nested subcommands|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 async fails when the promise returned by the command handler rejects|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command default commands strict allows default command aliases, when strict mode is enabled|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command positional arguments does not load config twice when command executed|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:
- command.mjs|title=Command global parsing hints coerce should bubble errors thrown by coerce function inside commands|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware async it awaits middleware before awaiting handler, when applyBeforeValidation is "false"|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.ts ×3 — Ancestor (broader) Introduced files:
- command.mjs|title=Command usage allows you to configure a default command|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints config does not load config for command if global is false|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints validation resets implies logic for command if global is false|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware runs all middleware before reaching the handler|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×2 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests getHelp should use cached help message for nested synchronous commands|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints types allows global setting to be disabled for array type|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints config loads config for command by default|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware runs the middleware before reaching the handler|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests command runs all middleware before reaching the handler|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files:
- middleware.mjs|title=middleware async $0 applies middleware before performing validation, with explicit $0|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×1 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands resets errors when parse is called multiple times|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.ts ×1 — Ancestor (broader) Introduced files:
- command.ts ×1 — Ancestor (broader) Introduced files:
- validation.mjs|title=validation tests demand fails in strict mode with extra positionals for default command|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command allows command handler to be invoked repeatedly when help is enabled|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints types applies array type globally|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command invokes command handler repeatedly if parse() is called multiple times|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command should support numeric commands|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- yargs.mjs|title=yargs dsl tests command executes command handler with parsed argv|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests yargs context should track commands being executed|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command respects order of positional arguments when matching commands|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:
-
validation.mjs|title=validation tests check callback has access to options|occurrence=1, validation.mjs|title=validation tests check does not fail if error is not thrown in check callback, and true is returned|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests check callback has access to options|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests check does not fail if error is not thrown in check callback, and true is returned|occurrence=1
- validation.mjs|title=validation tests check fails if error is thrown in check callback|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command default commands strict executes default command when strict mode is enabled|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints groups should apply custom option groups globally|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints help applies help globally|occurrence=1 — Ancestor (broader) 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:
- validation.ts ×1 — Ancestor (broader) Introduced files: 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:
- usage.ts ×1 — Ancestor (broader) Introduced files: 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:
- command.mjs|title=Command default commands allows default command to be set as alias|occurrence=1 — Ancestor (broader) Introduced tests:
- 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:
- command.mjs|title=Command default commands allows $0 as an alias for a default command|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command default commands executes default command if defined positional arguments and only command|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command does not coerce number from positional with leading "+"|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command async builder does not print to stdout when parse callback is provided|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests reset does not invoke parse with an error if reset has been called and option is not global|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse resets error state between calls to parse|occurrence=1 — Ancestor (broader) Introduced tests:
-
validation.mjs|title=validation tests strictOptions fails if option is unknown|occurrence=1, validation.mjs|title=validation tests strictOptions applies strict options when commands are invoked|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests strictOptions applies strict options when commands are invoked|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/validation.mjs|title=validation tests strictOptions fails if option is unknown|occurrence=1
- command.mjs|title=Command default commands executes default command if undefined positional arguments and only command|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware synchronous $0 applies global middleware when default command is provided, with explicit $0|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests requiresArg fails when a required argument value of type array is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests requiresArg fails when a required argument value of type number is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests requiresArg fails when a required argument value of type string is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests requiresArg fails when a required argument value of type boolean is missing|occurrence=1 — Ancestor (broader) Introduced tests:
- 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:
- command.mjs|title=Command default commands executes default command if no positional arguments given|occurrence=1 — Ancestor (broader) Introduced tests:
- 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 strict mode does not fail for hidden options but does for unknown arguments|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware async coerce allows error to be caught|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.ts ×1 — Ancestor (broader) Introduced files:
- middleware.mjs|title=middleware async coerce applies coerce before validation|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests .coerce() argv does not include stripped dashes|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests showHelp should call the callback to print when specified|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.mjs|title=validation tests implies allows key to be specified with option shorthand|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests .coerce() coerce still works when key used for coerce is not explicitly present in argv|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:
- usage.mjs|title=usage tests showHelp should not run default command|occurrence=1 — Ancestor (broader) Introduced tests:
-
yargs.mjs|title=yargs dsl tests .coerce() is supported by .option()|occurrence=1, yargs.mjs|title=yargs dsl tests .coerce() argv includes coerced camelCase|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests .coerce() argv includes coerced camelCase|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests .coerce() is supported by .option()|occurrence=1
- validation.ts ×2 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- validation.mjs|title=validation tests demand fails because of undefined command and not because of argument after --|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command should not execute command if it is preceded by another positional argument|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- validation.ts ×2 — Ancestor (broader) Introduced files:
- validation.ts ×3 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests .coerce() supports an option alias|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware async check success returns promise if check is async|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware async coerce coerce is applied to argument and aliases|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- middleware.ts ×1 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests parseAsync returns promise when parse is asynchronous|occurrence=1 — Ancestor (broader) Introduced tests:
- middleware.mjs|title=middleware async $0 applies global middleware when no commands are provided, with implied $0|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
-
yargs.mjs|title=yargs dsl tests parse parses a quoted string|occurrence=1, yargs.mjs|title=yargs dsl tests parse parses a simple string|occurrence=1, +2 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/yargs-test.mjs|title=ESM parser parses process.argv by default|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests parse parses a quoted string|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests parse parses a simple string|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests parsed should not be false after parsing|occurrence=1
- yargs.mjs|title=yargs dsl tests should not pollute the prototype does not pollute, when .parse() is called|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×2 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- yargs.mjs|title=yargs dsl tests should allow defaultDescription to be set with .option()|occurrence=1 — Ancestor (broader) Introduced tests:
- validation.ts ×3 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×2 — Ancestor (broader) Introduced files: Introduced tests:
- yargs.mjs|title=yargs dsl tests choices accepts a string and single value|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests global should set help to global option by default|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests global should set version to global option by default|occurrence=1 — Ancestor (broader) Introduced tests:
-
yargs.mjs|title=yargs dsl tests showHidden should set show-hidden option|occurrence=1, yargs.mjs|title=yargs dsl tests showHidden should set custom-show-hidden option|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests showHidden should set custom-show-hidden option|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests showHidden should set show-hidden option|occurrence=1
- yargs.mjs|title=yargs dsl tests hide should add the key to hiddenOptions|occurrence=1 — Ancestor (broader) Introduced tests:
-
yargs-factory.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is detected correctly when argv contains "iojs"|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is detected correctly when argv contains "iojs.exe"|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is detected correctly when argv contains "node"|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is detected correctly when argv contains "node.exe"|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is detected correctly when dirname and argv contain "iojs"|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is detected correctly when dirname and argv contain "node"|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is not resolved to the relative path if it is larger|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests $0 is resolved to the relative path if it is shorter|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests parsed should be false before parsing|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.
2 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 344 extent ranges are introduced by other concepts.