lib
455 root concepts · page 6 of 10
+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, …) 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
+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
+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 --custom-show-hidden|occurrence=1, usage.mjs|title=usage tests hidden options --help should display all options with --custom-show-hidden|occurrence=1
2 tests · 2715 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 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 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
+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 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 help option when exitProcess is false should not validate arguments (nargs)|occurrence=1
1 test · 2750 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 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
+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
+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
+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
+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