!isPositionalKey &&
!options.hiddenOptions.includes(key) &&
) {
this.completeOptionKey(
Frontier kind: Code frontier
unlabeled · c_aa5f70dfee54
37 tests · 2405 LOC · 18 files · introduces 0 tests · 9 LOC · 1 file
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.
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.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) includes flags that have default|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(./completion, --get-yargs-completions, …) includes flags that have default|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) avoids repeating flags whose negated counterparts are already included|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(./completion, --get-yargs-completions, …) avoids repeating flags whose negated counterparts are already included|occurrence=1mocha: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=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes with no- prefix flags defaulting to true when boolean-negation is set|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(./completion, --get-yargs-completions, …) completes with no- prefix flags defaulting to true when boolean-negation is set|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes short options with a single dash when the user did not already enter two dashes|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes single digit options with two dashes|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(./completion, --get-yargs-completions, …) completes short options with a single dash when the user did not already enter two dashes|occurrence=1mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/completion.mjs|title=Completion default completion behavior calling yargs(./completion, --get-yargs-completions, …) completes single digit options with two dashes|occurrence=1mocha: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=1mocha: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=1mocha: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=1mocha: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=1mocha: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=1Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 9 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
!isPositionalKey &&
!options.hiddenOptions.includes(key) &&
) {
this.completeOptionKey(
private argsContainKey(
key: string,
negable: boolean
): boolean {
const argsContains = (s: string) =>
args.indexOf((/^[^0-9]$/.test(s) ? '-' : '--') + s) !== -1;
if (argsContains(key)) return true;
if (negable && argsContains(`no-${key}`)) return true;
if (this.aliases) {
for (const alias of this.aliases[key]) {