lib
community-002 · 968 concepts · page 4 of 10
showing 100 of 968
+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
3 tests · 2786 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+completion.mjs|title=Completion zsh completes options with line break|occurrence=1
2 tests · 2731 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests exitProcess should set exit process to true, if no argument provided|occurrence=1
1 test · 2786 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests locale handles a missing locale|occurrence=1
1 test · 2830 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command default commands executes default command if undefined positional arguments and only command|occurrence=1
1 test · 2829 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware synchronous $0 applies global middleware when default command is provided, with explicit $0|occurrence=1
1 test · 2860 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests command executes top-level help if no handled command is provided|occurrence=1
1 test · 2828 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) avoids repeating options whose aliases are already included|occurrence=1
1 test · 2736 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) ignores positionals for the correct command|occurrence=1
2 tests · 2759 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests locale allows a locale other than the default 'en' to be specified|occurrence=1
2 tests · 2826 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+$0 if it has no aliases|occurrence=1
4 tests · 2810 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests requiresArg fails when a required argument value of type array is missing|occurrence=1
1 test · 2748 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests requiresArg fails when a required argument value of type number is missing|occurrence=1
1 test · 2748 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests requiresArg fails when a required argument value of type string is missing|occurrence=1
1 test · 2748 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests accepts an object for implies|occurrence=1
1 test · 2795 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion zsh does not apply validation when --get-yargs-completions is passed in|occurrence=1
1 test · 2701 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests defaultDescription using option() without default() should prefer given desc over function desc|occurrence=1
1 test · 2763 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests requiresArg fails when a required argument value of type boolean is missing|occurrence=1
1 test · 2743 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) avoids repeating already included options|occurrence=1
5 tests · 2696 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) works if positional has no choices|occurrence=1
2 tests · 2719 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests command does not print command recommendation if help message will be shown|occurrence=1
1 test · 2811 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion bash does not apply validation when --get-yargs-completions is passed in|occurrence=1
2 tests · 2692 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) returns arguments as completion suggestion, if next contains '-'|occurrence=1
8 tests · 2688 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests allows multiple option calls to not clobber description|occurrence=1
1 test · 2733 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests defaultDescription using option() with default() should prefer option() desc over default() function|occurrence=1
2 tests · 2756 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests when exitProcess is false when check fails with a thrown exception should display missing arguments once|occurrence=1
1 test · 2740 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .help() with .alias() uses multi-char (but not single-char) help alias as command|occurrence=1
1 test · 2810 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes options for the correct command|occurrence=1
5 tests · 2718 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests group allows an an option to be placed in an alternative group|occurrence=1
1 test · 2735 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests showHelp should not run handler or middleware|occurrence=1
1 test · 2804 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demandCommand should return a custom failure message when too many non-hyphenated arguments are found after a demand count|occurrence=1
1 test · 2677 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests defaultDescription using option() without default() should output given desc with default value|occurrence=1
2 tests · 2748 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests help option should use 2 dashes for general 1-digit usage|occurrence=1
1 test · 2726 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes choices if previous option or one of its aliases requires a choice and a partial choice has been entered|occurrence=1
1 test · 2707 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests help option should use single dashes for 1-digit boolean alias usage|occurrence=1
1 test · 2764 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests getHelp should not run handler or middleware|occurrence=1
1 test · 2794 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes choices if previous option or one of its aliases requires a choice and space has been entered|occurrence=1
1 test · 2704 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes choices if previous option or one of its aliases requires a choice|occurrence=1
1 test · 2704 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes choices if previous option requires a choice and a partial choice has been entered|occurrence=1
2 tests · 2691 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes choices if previous option requires a choice and space has been entered|occurrence=1
2 tests · 2688 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes choices if previous option requires a choice|occurrence=1
2 tests · 2688 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) includes flags that have default|occurrence=1, completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) includes flags that have default|occurrence=1
2 tests · 2652 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests async builder help is displayed before exit is called with async default command|occurrence=1
1 test · 2769 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests hidden options --help should display all options except for hidden ones even with a default|occurrence=1
1 test · 2727 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 --help|occurrence=1
1 test · 2766 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command commandDir supports absolute dirs|occurrence=1, command.mjs|title=Command commandDir supports relative dirs|occurrence=1, +1
8 tests · 2809 LOC · 18 files · introduces 3 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests defaultDescription using option() without default() should output given desc without default value|occurrence=1
6 tests · 2727 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests group allows group to be provided in the options object|occurrence=1
1 test · 2739 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests hidden options --help should display all groups (including ones with only hidden options) with --show-hidden|occurrence=1
1 test · 2715 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests showHelpOnFail should display user supplied message|occurrence=1
1 test · 2646 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command deprecated command using module shows deprecated notice with boolean|occurrence=1
1 test · 2788 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command deprecated command using module shows deprecated notice with string|occurrence=1
1 test · 2787 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) avoids repeating options whose aliases are already included|occurrence=1
2 tests · 2708 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests choices should not output choices when defined for hidden options|occurrence=1
1 test · 2737 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests hidden options --help should display all options except for hidden ones even in a group|occurrence=1, usage.mjs|title=usage tests hidden options --help should display all groups except for ones with only hidden options|occurrence=1
3 tests · 2711 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+command.mjs|title=Command deprecated command using arg shows deprecated notice with boolean|occurrence=1
1 test · 2772 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command deprecated command using arg shows deprecated notice with string|occurrence=1
1 test · 2771 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests help option should use 2 dashes for multiple-digit alias usage|occurrence=1
2 tests · 2742 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command default commands executes default command if no positional arguments given|occurrence=1
8 tests · 2797 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands should list a module command only once|occurrence=1
1 test · 2779 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x) should show [deprecated]|occurrence=1, usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x, string) should show [deprecated: string]|occurrence=1
2 tests · 2707 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests deprecate options using .option(x, {deprecate: [boolean%7Cstring]}) {deprecated: true} should show [deprecated]|occurrence=1, usage.mjs|title=usage tests deprecate options using .option(x, {deprecate: [boolean%7Cstring]}) {deprecated: string} should show [deprecated: string]|occurrence=1
2 tests · 2707 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests hidden options --help should display all options (including hidden ones) with --show-hidden|occurrence=1
4 tests · 2701 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests usage for default command multiple should contain the expected output for showHelp|occurrence=1
1 test · 2710 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strictOptions succeeds if option is known and command is unknown|occurrence=1
1 test · 2629 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) avoids repeating already included options|occurrence=1
7 tests · 2668 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests choices should output choices when defined for non-hidden options|occurrence=1
1 test · 2736 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests help option should use single dashes for 1-digit boolean key usage|occurrence=1
2 tests · 2704 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests hidden options --help should display all options except for hidden ones|occurrence=1
8 tests · 2698 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests group only displays a duplicated option once per group|occurrence=1
1 test · 2696 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand fails in strict mode with invalid command|occurrence=1
1 test · 2641 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests array should indicate when an option is an array|occurrence=1
1 test · 2708 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands displays aliases for commands that have them (no wrap)|occurrence=1
1 test · 2764 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands displays aliases for commands that have them (with wrap)|occurrence=1
2 tests · 2762 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests usage for default command multiple should contain the expected output for getHelp|occurrence=1
1 test · 2693 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests help option when exitProcess is false should not validate arguments (required argument)|occurrence=1
2 tests · 2738 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+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
2 tests · 2764 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 or one of its aliases requires a choice and a partial choice has been entered|occurrence=1
2 tests · 2679 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) returns arguments as completion suggestion, if next contains '-'|occurrence=1
11 tests · 2656 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests parse parses process.parse() if no arguments are provided|occurrence=1
5 tests · 2759 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 or one of its aliases requires a choice and space has been entered|occurrence=1
2 tests · 2676 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 or one of its aliases requires a choice|occurrence=1
2 tests · 2676 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 and a partial choice has been entered|occurrence=1
4 tests · 2663 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests defaults should not fail when demanded options with defaults are missing|occurrence=1
1 test · 2573 LOC · 18 files · introduces 1 test · 0 LOC · 0 files