usage.ts ×3
Frontier kind: Code frontier
unlabeled · c_bd1805e5f11f
43 tests · 2367 LOC · 18 files · introduces 0 tests · 6 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
- Code
- 3 ranges6 lines · 1 files
- Tests
- 0 tests
Contains — complete concept membership
- All code (extent)
- 431 ranges2367 lines · 18 files · Browse complete extent
- All tests (intent)
- 43 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 ×3 — Focused concept Introduced files:
- 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 populates array with appropriate arguments|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests positional allows normalize to be specified|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command positional arguments does not combine positional default and provided values|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs.mjs|title=yargs dsl tests command accepts a module with a 'builder' and 'handler' key|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command positional arguments does not overwrite options in argv if variadic|occurrence=1 — Ancestor (broader) Introduced tests:
- 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 an alias to be provided|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:
- 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.mjs|title=yargs dsl tests positional allows a defaultDescription to be set|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests defaultDescription using positional() without default() should prefer given desc over function desc|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests defaultDescription using positional() with default() should prefer positional() desc over default() function|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests defaultDescription using positional() with default() should prefer default() desc when given last|occurrence=1, usage.mjs|title=usage tests defaultDescription using positional() with default() should prefer positional() desc when given last|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests defaultDescription using positional() with default() should prefer default() desc when given last|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests defaultDescription using positional() with default() should prefer positional() desc when given last|occurrence=1
- usage.mjs|title=usage tests defaultDescription using positional() without default() should output given desc with default value|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 defaultDescription using positional() without default() should output given desc without default value|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command global parsing hints defaults applies defaults globally|occurrence=1 — Ancestor (broader) Introduced tests:
- command.mjs|title=Command does not require builder function to return|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 default command should display positionals that have been configured|occurrence=1 — Ancestor (broader) Introduced tests:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files: 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:
- yargs.mjs|title=yargs dsl tests positional allows positionals to be defined for default command|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.mjs|title=usage tests defaultDescription using option() without default() should prefer given desc over function desc|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 defaultDescription using option() with default() should prefer option() desc over default() function|occurrence=1 — Ancestor (broader) Introduced tests:
-
usage.mjs|title=usage tests defaultDescription using option() with default() should prefer option() desc when given last|occurrence=1, usage.mjs|title=usage tests defaultDescription using option() with default() should prefer default() desc when given last|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests defaultDescription using option() with default() should prefer default() desc when given last|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/usage.mjs|title=usage tests defaultDescription using option() with default() should prefer option() desc when given last|occurrence=1
- 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 defaultDescription using option() without default() should output given desc with default value|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 defaultDescription using option() without default() should output given desc without default value|occurrence=1 — Ancestor (broader) Introduced tests:
- 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:
-
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 default default-description take precedence if one is provided|occurrence=1 — Ancestor (broader) Introduced tests:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×2 — Ancestor (broader) Introduced files:
- yargs-factory.ts ×1 — Ancestor (broader) Introduced files:
- common-types.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×1 — Ancestor (broader) Introduced files:
- usage.ts ×4 — Ancestor (broader) 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:
- yargs-factory.ts ×3 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×2 — 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 ×2 — Descendant (narrower) Introduced files:
- yargs-factory.ts ×9 — 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:
- 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 ×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: 6 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
lib/usage.ts 6 introduced LOC · 3 ranges
}
}
return `${string}]`;
}
// guess the width of the console window, max-width 80.