lib
455 root concepts · page 4 of 10
+command.mjs|title=Command preserves top-level envPrefix|occurrence=1
1 test · 3135 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async $0 applies middleware before performing validation, with explicit $0|occurrence=1
1 test · 3017 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands resets errors when parse is called multiple times|occurrence=1
1 test · 3114 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests with strict() option set should fail given an option argument without a corresponding description|occurrence=1, usage.mjs|title=usage tests with strict() option set should fail given multiple option arguments without corresponding descriptions|occurrence=1
2 tests · 2993 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests usage for default command default only should contain the expected output for getHelp when called from within handler|occurrence=1
1 test · 3126 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand fails in strict mode with extra positionals for default command|occurrence=1
1 test · 3013 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands does not invoke command handler if output is populated|occurrence=1
1 test · 3103 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command allows command handler to be invoked repeatedly when help is enabled|occurrence=1
1 test · 3122 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices for nested command|occurrence=1
1 test · 3045 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+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
+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
+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 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
+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
+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
+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
+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 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 .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
+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
+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
+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