usage.ts ×1
Frontier kind: Code frontier
unlabeled · c_83beac6bb6f2
55 tests · 2508 LOC · 18 files · introduces 0 tests · 2 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
- Code
- 1 range2 lines · 1 files
- Tests
- 0 tests
Contains — complete concept membership
- All code (extent)
- 461 ranges2508 lines · 18 files · Browse complete extent
- All tests (intent)
- 55 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.ts ×1 — Focused concept Introduced files:
- yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands preserves top-level config when parse is called multiple times|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests default command should display help output for nested default command on failure|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:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: 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:
- validation.mjs|title=validation tests strictOptions allows strict options to be turned off|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- command.mjs|title=Command commandDir supports nested subcommands|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
- 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 usage for default command multiple should contain the expected output for getHelp when called from within handler|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:
- 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:
- validation.mjs|title=validation tests strictCommands does not apply implicit strictCommands to inner 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:
- yargs.mjs|title=yargs dsl tests getHelp should use cached help message for nested synchronous commands|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:
- command.mjs|title=Command commandDir allows ESM modules commands to be extensible using visit option|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:
- 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 allows completion command to be hidden|occurrence=1 — Ancestor (broader) Introduced tests:
- levenshtein.ts ×1 — Ancestor (broader) Introduced files: 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 usage for default command multiple should contain the expected output for --help|occurrence=1 — Ancestor (broader) 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:
- 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:
- yargs.mjs|title=yargs dsl tests command executes top-level help if no handled command is provided|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:
- yargs.mjs|title=yargs dsl tests command does not print command recommendation if help message will be shown|occurrence=1 — Ancestor (broader) Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- command.ts ×1 — Ancestor (broader) Introduced files: 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:
- command.ts ×1 — Ancestor (broader) Introduced files: 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
- usage.mjs|title=usage tests commands should list a module command only once|occurrence=1 — Ancestor (broader) Introduced tests:
- 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 usage for default command multiple should contain the expected output for getHelp|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
- yargs.mjs|title=yargs dsl tests parse parses process.parse() if no arguments are provided|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:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×6 — Descendant (narrower) Introduced files:
- usage.ts ×2 — Descendant (narrower) Introduced files:
- usage.ts ×1 — Descendant (narrower) Introduced files:
- usage.ts ×17 — Descendant (narrower) Introduced files:
- usage.ts ×3 — Descendant (narrower) Introduced files:
- usage.ts ×19 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- middleware.ts ×3 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×3 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×2 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×2 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×5 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×5 — Descendant (narrower) Introduced files:
- usage.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×2 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×9 — Descendant (narrower) Introduced files:
- command.ts ×2 — Descendant (narrower) Introduced files:
- usage.ts ×2 — Descendant (narrower) Introduced files:
- command.ts ×1 — Descendant (narrower) Introduced files:
- command.ts ×1 — Descendant (narrower) Introduced files:
- command.ts ×5 — Descendant (narrower) Introduced files:
- command.ts ×1 — Descendant (narrower) Introduced files:
- command.ts ×3 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- usage.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×2 — Descendant (narrower) Introduced files:
- command.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×1 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×35 — Descendant (narrower) Introduced files:
-
yargs-factory.ts ×124 — Descendant (narrower)
Introduced files:
- 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
-
is-promise.ts ×2 — Descendant (narrower)
Introduced files:
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/is-promise.mjs|title=isPromise returns `false` if passed object has no `then` property|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/is-promise.mjs|title=isPromise returns `false` if some falsy value is passed|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/is-promise.mjs|title=isPromise returns `false` on non promise value|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: 2 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.