lib
community-002 · 968 concepts · page 2 of 10
showing 100 of 968
+validation.mjs|title=validation tests demand interprets max relative to command|occurrence=1
1 test · 3207 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand interprets min relative to command|occurrence=1
1 test · 3209 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command default commands does not execute default command if another command is provided|occurrence=1
1 test · 3217 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command executes a command via alias|occurrence=1
1 test · 3208 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command missing positional arguments does not fail if optional argument is missing|occurrence=1, command.mjs|title=Command positional arguments populates argv with camel-case variants of arguments when possible|occurrence=1, +1
8 tests · 3214 LOC · 18 files · introduces 3 tests · 0 LOC · 0 files
+command.mjs|title=Command positional arguments continues to support populate-- for commands, post #1457|occurrence=1
1 test · 3218 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional arguments populates subcommand's inner argv with positional arguments|occurrence=1
1 test · 3214 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async it allows middleware rejection to be caught|occurrence=1
2 tests · 3194 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests demand options using .demand() no failure occurs if the required arguments and the required number of commands are provided|occurrence=1
1 test · 3231 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command commandDir supports nested subcommands|occurrence=1
1 test · 3171 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional aliases allows an alias to be defined for an optional positional argument|occurrence=1
2 tests · 3221 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional aliases allows several aliases to be defined for an optional positional argument|occurrence=1
2 tests · 3256 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional arguments populates inner argv with positional arguments|occurrence=1
7 tests · 3213 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async fails when the promise returned by the middleware rejects|occurrence=1
1 test · 3169 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strictCommands fails with error if inner command is unknown|occurrence=1, validation.mjs|title=validation tests strictCommands allows strictCommands to be applied to inner commands|occurrence=1
2 tests · 3223 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+command.mjs|title=Command handles positional arguments if command is invoked using .parse()|occurrence=1
1 test · 3209 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands can bump up preserved groups|occurrence=1
1 test · 3145 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 exception occurs|occurrence=1
1 test · 3187 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .coerce() supports a global option within command|occurrence=1
1 test · 3225 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints types applies choices type globally|occurrence=1
1 test · 3225 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command variadic only allows the last argument to be variadic|occurrence=1
22 tests · 3208 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware applyBeforeValidation=true runs before validation, when middleware is added in builder|occurrence=1
2 tests · 3205 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands should display global non empty groups for subcommands|occurrence=1
1 test · 3141 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests command accepts an object for describing a command's options|occurrence=1
1 test · 3140 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands allows context object to be passed to parse|occurrence=1, yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands does not fail if context object has cyclical reference|occurrence=1, +1
3 tests · 3211 LOC · 18 files · introduces 3 tests · 0 LOC · 0 files
+command.mjs|title=Command builder helpOrVersionSet cmd|occurrence=1, yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands populates argv appropriately when parse is called multiple times|occurrence=1
7 tests · 3208 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+middleware.mjs|title=middleware async check success allows async check to be used with command|occurrence=1
1 test · 3200 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async coerce allows two commands to register different coerce methods|occurrence=1
1 test · 3222 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands allows global option to be disabled|occurrence=1
2 tests · 3141 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands should display global non empty groups for commands|occurrence=1
3 tests · 3140 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests positional displays choices array|occurrence=1
1 test · 3211 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests positional displays type information|occurrence=1
1 test · 3189 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strict mode does not fail when command with subcommands called|occurrence=1
1 test · 3221 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands invokes command handler normally if no output is populated|occurrence=1
1 test · 3209 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests defaultDescription using positional() without default() should output given desc without default value|occurrence=1
6 tests · 3177 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests positional displays aliases appropriately|occurrence=1
1 test · 3195 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests getHelp should allow help to be output for failed command|occurrence=1
2 tests · 3161 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints defaults applies defaults globally|occurrence=1
1 test · 3177 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints validation applies conflicts logic for command by default|occurrence=1
1 test · 3181 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands can add to preserved groups|occurrence=1
2 tests · 3137 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 when called from within handler|occurrence=1
1 test · 3213 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async calls an async middleware only once for nested subcommands|occurrence=1
1 test · 3185 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests positional should display help section for positionals|occurrence=1
2 tests · 3180 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on globally|occurrence=1, usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on command and globally (priority given to command message)|occurrence=1
2 tests · 3092 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+command.mjs|title=Command does not require builder function to return|occurrence=1
1 test · 3175 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests showHelpOnFail should handle being chained both globally and on a command chained on to command|occurrence=1
3 tests · 3090 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command allows async exception in handler to be caught|occurrence=1
5 tests · 3155 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command async fails when the promise returned by the command handler rejects|occurrence=1
1 test · 3154 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command default commands strict allows default command aliases, when strict mode is enabled|occurrence=1
1 test · 3055 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands preserves global wrap() for commands that do not override it|occurrence=1
1 test · 3125 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 showHelp when called from within handler|occurrence=1
1 test · 3219 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional arguments does not load config twice when command executed|occurrence=1
1 test · 3096 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strictCommands does not apply implicit strictCommands to inner commands|occurrence=1
1 test · 3207 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints coerce should bubble errors thrown by coerce function inside commands|occurrence=1
1 test · 3160 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async it awaits middleware before awaiting handler, when applyBeforeValidation is "false"|occurrence=1
4 tests · 3172 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests commands allows a command to override global wrap()|occurrence=1
1 test · 3121 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware applies aliases before middleware is called|occurrence=1
2 tests · 3219 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints strict can be enabled just for a command|occurrence=1, command.mjs|title=Command global parsing hints strict applies strict globally by default|occurrence=1
2 tests · 3173 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+command.mjs|title=Command usage allows you to configure a default command|occurrence=1
1 test · 3075 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware doesn't modify globalMiddleware array when executing middleware|occurrence=1
1 test · 3170 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints config does not load config for command if global is false|occurrence=1
1 test · 3158 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional arguments does not overwrite options in argv if variadic and preserves falsy values|occurrence=1
1 test · 3073 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional arguments does not overwrite options in argv if variadic and when using default command|occurrence=1
1 test · 3073 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware should be able to register middleware regardless of when middleware is called|occurrence=1
1 test · 3175 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints validation resets conflicts logic for command if global is false|occurrence=1
1 test · 3156 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints validation resets implies logic for command if global is false|occurrence=1
1 test · 3165 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x) in a sub-command|occurrence=1, usage.mjs|title=usage tests deprecate options using .deprecateOption(x, [string]) .deprecateOption(x, string) in a sub-command|occurrence=1
2 tests · 3089 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+usage.mjs|title=usage tests deprecate options using .option(x, {deprecate: [boolean%7Cstring]}) {deprecated: string} in sub-command|occurrence=1, usage.mjs|title=usage tests deprecate options using .option(x, {deprecate: [boolean%7Cstring]}) {deprecated: boolean} in sub-command|occurrence=1
2 tests · 3089 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests getHelp should allow help to be output for successful command|occurrence=1
1 test · 3135 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests getHelp should use cached help message for nested synchronous commands|occurrence=1
1 test · 3167 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints types allows global setting to be disabled for array type|occurrence=1
1 test · 3141 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints config loads config for command by default|occurrence=1
1 test · 3149 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware runs the middleware before reaching the handler|occurrence=1
9 tests · 3160 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strictCommands succeeds in parse if top level and inner command are known|occurrence=1
1 test · 3152 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 first positional|occurrence=1
1 test · 3076 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strictCommands succeeds in parse if command is known|occurrence=1
1 test · 3144 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests parserConfiguration supports --unknown-options-as-args|occurrence=1
1 test · 3157 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
+command.mjs|title=Command global parsing hints types applies array type globally|occurrence=1
2 tests · 3125 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints strict allows a command to override global`|occurrence=1
3 tests · 3123 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command invokes command handler repeatedly if parse() is called multiple times|occurrence=1
4 tests · 3119 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command should support numeric commands|occurrence=1
2 tests · 3120 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
+completion.mjs|title=Completion default completion behavior calling yargs(--get-yargs-completions, …) completes choices for second positional after option|occurrence=1
2 tests · 3047 LOC · 18 files · introduces 1 test · 0 LOC · 0 files