lib
community-002 · 968 concepts · page 3 of 10
showing 100 of 968
+usage.mjs|title=usage tests wrap should wrap argument descriptions onto multiple lines|occurrence=1
1 test · 2970 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests should not fail if command handler freezes object|occurrence=1
1 test · 3132 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests command executes command handler with parsed argv|occurrence=1
11 tests · 3121 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests yargs context should track commands being executed|occurrence=1
4 tests · 3118 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command respects order of positional arguments when matching commands|occurrence=1
60 tests · 3117 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 when called from within handler|occurrence=1
1 test · 3129 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) options choices should not be display with positional choices|occurrence=1
1 test · 3034 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests async builder positional should contain the expected output for --help|occurrence=1
1 test · 3006 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware applyBeforeValidation=true still throws error when async middleware is used|occurrence=1
1 test · 2970 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests default command should display positionals that have been configured|occurrence=1
1 test · 2987 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests usage for default command positional should contain the expected output for --help|occurrence=1
1 test · 3003 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command commandDir allows ESM modules commands to be extensible using visit option|occurrence=1
1 test · 3082 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests demand option with boolean flag with demand option should report missing required arguments|occurrence=1, usage.mjs|title=usage tests demand option with boolean flag with required option should report missing required arguments|occurrence=1
2 tests · 2915 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices for positional with prefix|occurrence=1
3 tests · 3020 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands allows a builder function to override default usage() string|occurrence=1
1 test · 3052 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests demand options using .demand() missing argument message given if one command, but an argument not on the list is provided|occurrence=1
2 tests · 2946 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests demand options using .demand() missing command message if all the required arguments exist, but not enough commands are provided|occurrence=2
1 test · 2955 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests demand options using .demand() missing command message if all the required arguments exist, but not enough commands are provided|occurrence=1
2 tests · 2949 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests choices fails when demandOption is true and choice is not provided|occurrence=1
1 test · 2939 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests command skips executing root-level command if builder's help is executed|occurrence=1
1 test · 3066 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) works if positional has no choices|occurrence=1
2 tests · 2991 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests check callback has access to options|occurrence=1, validation.mjs|title=validation tests check does not fail if error is not thrown in check callback, and true is returned|occurrence=1
2 tests · 2996 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+validation.mjs|title=validation tests check fails if error is thrown in check callback|occurrence=1
1 test · 2952 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command commandDir detects and ignores cyclic dir references|occurrence=1
4 tests · 3035 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands allows completion command to be hidden|occurrence=1
1 test · 2978 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command default commands strict executes default command when strict mode is enabled|occurrence=1
1 test · 2944 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands does not display $0 twice when default commands are enabled|occurrence=1
1 test · 3065 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands should not show hidden commands|occurrence=1, usage.mjs|title=usage tests commands should output a list of available commands|occurrence=1
3 tests · 2953 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints groups should apply custom option groups globally|occurrence=1
1 test · 2998 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands displays given command chain with positional args in default usage for subcommand with builder object|occurrence=1
1 test · 2998 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints help applies help globally|occurrence=1
1 test · 2999 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands displays given command chain with positional args in default usage for subcommand with builder function|occurrence=1
3 tests · 2986 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints describe flags an option as global if a description is set|occurrence=1
3 tests · 2980 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands allows a builder to add more than one usage with multiple usage calls|occurrence=1
2 tests · 2978 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests should print a single line when failing and default is set for an alias|occurrence=1
1 test · 2902 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command builder helpOrVersionSet --help|occurrence=1, command.mjs|title=Command async builder helpOrVersionSet --help|occurrence=1
2 tests · 2976 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+command.mjs|title=Command builder helpOrVersionSet help|occurrence=1
1 test · 2978 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands populates output appropriately when parse is called multiple times|occurrence=1
2 tests · 2977 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command default commands allows default command to be set as alias|occurrence=1
3 tests · 2908 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .coerce() allows an error from positional arg to be handled by fail() handler|occurrence=1
1 test · 2893 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command default commands allows $0 as an alias for a default command|occurrence=1
2 tests · 2909 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands allows a builder to disable usage with null after multiple usage calls|occurrence=1
1 test · 2971 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests should return a custom failure message when not enough non-hyphenated arguments are found after a demand count|occurrence=1
1 test · 2829 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests should return a failure message when not enough non-hyphenated arguments are found after a demand count|occurrence=1
1 test · 2834 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command does not coerce number from positional with leading "+"|occurrence=1
4 tests · 2908 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+max demanded count allows a customer error message to be provided|occurrence=1
2 tests · 2826 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests required arguments with requiresArg method should show a failure message if a required option is missing|occurrence=1
1 test · 2847 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command async builder does not print to stdout when parse callback is provided|occurrence=1
1 test · 2969 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes choices for first positional|occurrence=1
1 test · 2827 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+max demanded count outputs an error if '_' count is above max|occurrence=1
1 test · 2829 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests required arguments with options object should show a failure message if a required option is missing|occurrence=1, usage.mjs|title=usage tests required arguments with options object should show a failure message if more than one required option is missing|occurrence=1
2 tests · 2844 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+max demanded count outputs an error if '_' count is below min|occurrence=1
2 tests · 2828 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests reset does not invoke parse with an error if reset has been called and option is not global|occurrence=1
1 test · 2821 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) ignores positionals for the correct command|occurrence=1
1 test · 2787 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests demand options should not show a custom message if msg is null|occurrence=1
2 tests · 2815 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+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, --get-yargs-completions, …) completes choices for second positional after option|occurrence=1
2 tests · 2798 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 demand options using .demand() should show an error along with the missing arguments on demand fail|occurrence=1
2 tests · 2826 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.mjs|title=Completion bash completes options for a command|occurrence=1
3 tests · 2758 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
+usage.mjs|title=usage tests should display example on fail|occurrence=1
2 tests · 2835 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests wrap should wrap the usage string|occurrence=1
3 tests · 2806 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
+completion, --get-yargs-completions, …) completes options for the correct command|occurrence=1
4 tests · 2746 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 default command should display top-level help with no command given|occurrence=1
2 tests · 2822 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 showHelpOnFail calling with no arguments should default to displaying help|occurrence=1
2 tests · 2803 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion, --get-yargs-completions, …) completes choices for positional with prefix|occurrence=1
3 tests · 2771 LOC · 18 files · introduces 1 test · 0 LOC · 0 files