lib
455 root concepts · page 5 of 10
+usage.mjs|title=usage tests demand options using .demand() using .require() should show an error along with the missing arguments on demand fail|occurrence=1
1 test · 2832 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests when exitProcess is false fail() when command() throws error fail() is called with the original error object as the second parameter|occurrence=1
1 test · 2857 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion bash does not complete hidden options for command|occurrence=1
1 test · 2764 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion zsh completes options for a command|occurrence=1
1 test · 2767 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 --help|occurrence=1
1 test · 2868 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes choices for nested command|occurrence=1
1 test · 2795 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests should display a failed message when check condition fails|occurrence=1
1 test · 2823 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) options choices should not be display with positional choices|occurrence=1
1 test · 2785 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows positionals to be defined for default command|occurrence=1
1 test · 2767 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests should display missing arguments when check fails with a thrown exception|occurrence=1
1 test · 2817 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse resets error state between calls to parse|occurrence=1
1 test · 2796 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests wrap should wrap the left-hand-column if it takes up more than 50%25 of the screen|occurrence=1
1 test · 2816 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests showHelpOnFail should display custom failure message, if string is provided as first argument|occurrence=1
1 test · 2806 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests wrap should align span columns when ansi colors are used in a description|occurrence=1, usage.mjs|title=usage tests wrap should align span columns when ansi colors are not used in a description|occurrence=1
2 tests · 2822 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests "nargs" with "array" should raise error if not enough values follow nargs key|occurrence=1
1 test · 2801 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 argv as second argument|occurrence=1, yargs.mjs|title=yargs dsl tests function passed as second argument to parse gets passed error as first argument|occurrence=1
2 tests · 2786 LOC · 18 files · introduces 2 tests · 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
+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
+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
+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 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
+usage.mjs|title=usage tests defaultDescription using option() with default() should prefer option() desc when given last|occurrence=1, usage.mjs|title=usage tests defaultDescription using option() with default() should prefer default() desc when given last|occurrence=1
2 tests · 2754 LOC · 18 files · introduces 2 tests · 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