lib
455 root concepts · page 7 of 10
+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
+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
+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 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
+usage.mjs|title=usage tests default default-description take precedence if one is provided|occurrence=1
1 test · 2679 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
+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
+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
+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
+completion.mjs|title=Completion completion() allows custom completion to be combined with default completion, using filter|occurrence=1
1 test · 2580 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() 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 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
+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 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
+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
+completion, --get-yargs-completions, …) avoids repeating already included commands|occurrence=1
1 test · 2531 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: true|occurrence=1
1 test · 2525 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests should ignore a missing array choice with an empty default|occurrence=1
1 test · 2526 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse does not print to stdout|occurrence=1
1 test · 2632 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware should run even if no command is matched|occurrence=1
1 test · 2541 LOC · 18 files · introduces 1 test · 0 LOC · 0 files