lib
community-002 · 968 concepts · page 5 of 10
showing 100 of 968
+completion, --get-yargs-completions, …) avoids repeating flags whose negated counterparts are already included|occurrence=1, completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) avoids repeating flags whose negated counterparts are already included|occurrence=1
2 tests · 2579 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices if previous option requires a choice and space has been entered|occurrence=1
4 tests · 2660 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices if previous option requires a choice|occurrence=1
4 tests · 2660 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strict mode does not fail for hidden options but does for unknown arguments|occurrence=1
1 test · 2560 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .help() enables given string as help option and command with string argument|occurrence=1
1 test · 2721 LOC · 18 files · introduces 1 test · 0 LOC · 0 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
4 tests · 2575 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+middleware.mjs|title=middleware async coerce allows error to be caught|occurrence=1
1 test · 2609 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests getHelp should display top-level help with no command given|occurrence=1
1 test · 2648 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion zsh completes with no- prefix flags defaulting to true when boolean-negation is set|occurrence=1
1 test · 2582 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests normalizeAliases should display 'required' string in help message if set for alias|occurrence=1
1 test · 2736 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes with no- prefix flags defaulting to true when boolean-negation is set|occurrence=1, 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=1
2 tests · 2569 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests with strict() option set with hyphens in options accepts mixed options with values|occurrence=1
1 test · 2556 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware synchronous $0 applies middleware before performing validation, with implicit $0|occurrence=1
1 test · 2552 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests config outputs an error returned by the parsing function|occurrence=1
1 test · 2675 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes single digit options with two dashes|occurrence=1, completion, --get-yargs-completions, …) completes short options with a single dash when the user did not already enter two dashes|occurrence=1, +2
4 tests · 2579 LOC · 18 files · introduces 4 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests help option should not show both dashed and camelCase aliases|occurrence=1
1 test · 2665 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests skipValidation allows having an option that skips validation but not skipping validation if that option is not used|occurrence=1
1 test · 2541 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes short options with two dashes when the user already entered two dashes|occurrence=1
2 tests · 2583 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async $0 applies middleware before performing validation, with implied $0|occurrence=1
1 test · 2544 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests group does not print the 'Options:' group if no keys are in it|occurrence=1
1 test · 2689 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests normalizeAliases should display 'type' number in help message if set for alias|occurrence=1
1 test · 2715 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests config outputs an error if thrown by the parsing function|occurrence=1
2 tests · 2656 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion bash avoids interruption from default command|occurrence=1
1 test · 2585 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion bash getCompletion() returns default completion to callback for options|occurrence=1
1 test · 2595 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion zsh avoids interruption from default command|occurrence=1
1 test · 2587 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+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
3 tests · 2681 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests default serializes object and array defaults|occurrence=1
1 test · 2674 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests demand option with boolean flag should not report missing required arguments when given an alias|occurrence=1
1 test · 2557 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests required arguments still requires argument if 'type' hints are given|occurrence=1
1 test · 2660 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints version applies version globally|occurrence=1
1 test · 2678 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async coerce applies coerce before validation|occurrence=1
1 test · 2583 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+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
4 tests · 2575 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests showHelp should call the correct console.log method when specified|occurrence=1
1 test · 2607 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+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
2 tests · 2607 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests exitProcess should not call process.exit on error if disabled|occurrence=1
1 test · 2558 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests normalizeAliases should display 'description' string in help message if set for alias|occurrence=1
1 test · 2701 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests normalizeAliases should display 'type' string in help message if set for alias|occurrence=1
2 tests · 2705 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .coerce() argv does not include stripped dashes|occurrence=1
1 test · 2581 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .coerce() shows coerced option in help|occurrence=1
1 test · 2589 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) works if command has no options|occurrence=1
5 tests · 2606 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests showHelp should call the callback to print when specified|occurrence=1
1 test · 2600 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests usage for default command default only should contain the expected output for showhelp|occurrence=1
1 test · 2608 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests with strict() option set should pass given option arguments with corresponding descriptions|occurrence=1
4 tests · 2534 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests implies allows key to be specified with option shorthand|occurrence=1
1 test · 2531 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests group displays alias keys appropriately within a grouping|occurrence=1
1 test · 2690 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests help option should display usage|occurrence=1
1 test · 2656 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demandOption allows demandOption in option shorthand|occurrence=1
1 test · 2512 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .coerce() argv does not include stripped aliases|occurrence=1, yargs.mjs|title=yargs dsl tests .coerce() argv does not include disabled camel-case-expansion|occurrence=1
3 tests · 2578 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .coerce() coerce still works when key used for coerce is not explicitly present in argv|occurrence=1
1 test · 2543 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command builder helpOrVersionSet --version|occurrence=1
1 test · 2654 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+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
3 tests · 2656 LOC · 18 files · introduces 3 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .coerce() argv includes coerced aliases|occurrence=1
4 tests · 2574 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests getHelp should run parse() and return help, if parse() not yet called|occurrence=1
1 test · 2590 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests should add --help as an option for printing usage text if help() is called without arguments|occurrence=1
1 test · 2650 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests requiresArg does not fail if argument with required value is not provided|occurrence=1
1 test · 2575 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strict mode does not fail if an alias is provided, rather than option itself|occurrence=1
1 test · 2551 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strictCommands fails with error if command is unknown|occurrence=1
1 test · 2554 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed output as third argument|occurrence=1
1 test · 2650 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests group allows multiple options to be grouped at the same time|occurrence=1
1 test · 2653 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests showHelp should not run default command|occurrence=1
1 test · 2593 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests usage for default command default only should contain the expected output for getHelp|occurrence=1
1 test · 2591 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests conflicts allows key to be specified with option shorthand|occurrence=1
1 test · 2501 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+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
6 tests · 2536 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+completion.mjs|title=Completion bash avoids interruption from command recommendations|occurrence=1
1 test · 2559 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion zsh avoids interruption from command recommendations|occurrence=1
1 test · 2561 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests with strict() option set with hyphens in options works with aliases|occurrence=1
4 tests · 2551 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests wrap should not indent usage when no wrap is specified|occurrence=1
2 tests · 2630 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strict mode does not fail for hidden options|occurrence=1
3 tests · 2513 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion bash returns a list of commands as completion suggestions|occurrence=1
2 tests · 2552 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion zsh returns a list of commands as completion suggestions|occurrence=1
2 tests · 2554 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests allows setting help and version with aliases and custom description|occurrence=1
1 test · 2663 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests with strict() option set with hyphens in options accepts valid options|occurrence=1
7 tests · 2513 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests "nargs" with "array" should apply nargs with higher precedence than requiresArg()|occurrence=1
1 test · 2537 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command commandDir supports a "visit" function option|occurrence=1
9 tests · 2649 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) avoids repeating already included commands|occurrence=1
1 test · 2531 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) does not complete hidden commands|occurrence=1, completion, --get-yargs-completions, …) does not include positional arguments|occurrence=1
5 tests · 2549 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests "nargs" with "array" should apply nargs with higher precedence than requiresArg: true|occurrence=1
1 test · 2525 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests locale uses locale string for help option default desc on .help().locale()|occurrence=1
20 tests · 2638 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests locale uses locale string for help option default desc on .locale().help()|occurrence=1
3 tests · 2637 LOC · 18 files · introduces 1 test · 0 LOC · 0 files