lib
community-002 · 968 concepts · page 1 of 10
showing 100 of 968
+command.mjs|title=Command global parsing hints coerce should not be applied multiple times for nested commands|occurrence=1
1 test · 3581 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows an implied argument to be specified|occurrence=1
1 test · 3525 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows a choices array to be specified|occurrence=1
1 test · 3518 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests function passed as second argument to parse commands preserves top-level config when parse is called multiple times|occurrence=1
1 test · 3477 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows a conflicting argument to be specified|occurrence=1
1 test · 3495 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows a coerce method to be provided|occurrence=1
1 test · 3531 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional populates array with appropriate arguments|occurrence=1
1 test · 3474 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests parse can be called multiple times with the same behavior|occurrence=1
1 test · 3485 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows normalize to be specified|occurrence=1
1 test · 3469 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command async builder allows positionals to be configured asynchronously|occurrence=1
1 test · 3442 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional does not parse large scientific notation values, when type string|occurrence=1
1 test · 3454 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints coerce should not add aliases to argv if strip-aliased config is true|occurrence=1
1 test · 3452 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional arguments does not combine positional default and provided values|occurrence=1
1 test · 3445 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests with strict() option set should wrap whitespace in quotes if provided as an unknown argument|occurrence=1
1 test · 3369 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strict mode does not fail when unrecognized option is passed after --|occurrence=1
1 test · 3363 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests command accepts a module with a 'builder' and 'handler' key|occurrence=1
1 test · 3344 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional arguments does not overwrite options in argv if variadic|occurrence=1
2 tests · 3386 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests default command should display help output for nested default command on failure|occurrence=1
1 test · 3388 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests help message caching should not display a cached help message for the next parsing|occurrence=1
1 test · 3328 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware applyBeforeValidation=true resolves async middleware, before applying validation|occurrence=1
1 test · 3312 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests command accepts a module with a keys 'command', 'describe', 'builder', and 'handler'|occurrence=1
1 test · 3338 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows positional arguments for subcommands to be configured|occurrence=1
1 test · 3386 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows a default to be set|occurrence=1, yargs.mjs|title=yargs dsl tests positional defaults array with no arguments to []|occurrence=1
3 tests · 3360 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows a number type to be specified|occurrence=1
1 test · 3385 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows a string type to be specified|occurrence=1, yargs-test.mjs|title=ESM bug #1758 does not drop .0 if positional is configured as string|occurrence=1, +1
4 tests · 3385 LOC · 18 files · introduces 3 tests · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows an alias to be provided|occurrence=1
1 test · 3373 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command help command displays command help appropriately|occurrence=1
1 test · 3373 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 showHelp|occurrence=1
1 test · 3376 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows a boolean type to be specified|occurrence=1
1 test · 3380 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware applyBeforeValidation=true applies aliases before middleware is called, for global middleware|occurrence=1
1 test · 3344 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command should kick along [demand] configuration to commands|occurrence=1
1 test · 3300 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints strict does not fire command if validation fails|occurrence=1
1 test · 3319 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware applyBeforeValidation=true runs before validation|occurrence=1
1 test · 3297 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command async displays error and appropriate help message when handler fails|occurrence=1
1 test · 3265 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand should recognize context variables in strict mode, when running sub-commands|occurrence=1
1 test · 3300 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand fails in strict mode with extra positionals|occurrence=1
1 test · 3306 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests strictOptions allows strict options to be turned off|occurrence=1
1 test · 3321 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests choices succeeds when demandOption is true and valid choice is provided|occurrence=1
1 test · 3322 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests .coerce() returns camelcase args for a command|occurrence=1, yargs.mjs|title=yargs dsl tests .coerce() supports positional and variadic args for a command|occurrence=1
2 tests · 3316 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+middleware.mjs|title=middleware async calls the command handler when all middleware promises resolve|occurrence=1
1 test · 3255 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints coerce defaults to applying coerce rules globally|occurrence=1
1 test · 3306 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests async argv caches nested help output, so that it can be output by showHelp()|occurrence=1
2 tests · 3247 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests conflicts should not fail if argument with conflict is provided, but not the argument it conflicts with|occurrence=1
1 test · 3256 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests async argv returns promise that can be caught if rejected|occurrence=1
2 tests · 3245 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command async returns promise that can be caught, when fail(false)|occurrence=1
1 test · 3245 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests when exitProcess is false fail() is invoked with yargs instance as third argument|occurrence=1
1 test · 3236 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests choices succeeds when demandOption is false and no choice is provided|occurrence=1, validation.mjs|title=validation tests choices succeeds when demandOption is not provided and no choice is provided|occurrence=1
3 tests · 3292 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints validation applies custom checks globally by default|occurrence=1
1 test · 3281 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints validation applies demandOption globally|occurrence=1
1 test · 3267 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async check failure allows error to be caught before calling command and middleware|occurrence=1
1 test · 3238 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests conflicts should not fail if conflicting argument is provided, without argument with conflict|occurrence=1
2 tests · 3250 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command should allow positional arguments for inner commands in strict mode, when no handler is provided|occurrence=1
1 test · 3274 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+validation.mjs|title=validation tests demand should recognize context variables in strict mode|occurrence=1
1 test · 3271 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints strict does not fail strict check due to positional command arguments|occurrence=1
1 test · 3265 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints validation allows each builder to specify own middleware|occurrence=1
1 test · 3276 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command variadic allows camel-case, variadic arguments, and strict mode to be combined|occurrence=1
1 test · 3263 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints strict does not fail strict check due to positional command arguments in nested commands|occurrence=1
1 test · 3263 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests async parse caches deeply nested help output, so that it can be output by showHelp()|occurrence=1
1 test · 3240 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests bug #1758 does not drop .0 if flag is configured as string|occurrence=1
5 tests · 3228 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command variadic fails if required arguments are missing|occurrence=1
1 test · 3244 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command async builder allows deeply nested command to be defined in async builder|occurrence=1
1 test · 3252 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 to subcommand|occurrence=1
1 test · 3245 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command async builder allows command to be defined in async builder|occurrence=1
1 test · 3271 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command missing positional arguments fails if a required argument is missing|occurrence=1
2 tests · 3240 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests positional shows that variadic positional arguments are arrays|occurrence=1
1 test · 3227 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests async argv returns deeply nested promise that resolves argv on success|occurrence=1
1 test · 3231 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests async parse caches nested help output, so that it can be output by showHelp()|occurrence=1
2 tests · 3237 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs-test.mjs|title=ESM hierarchy of commands allows array of commands to be registered|occurrence=1
1 test · 3247 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests async parse calls parse callback once deeply nested promise has resolved|occurrence=1
1 test · 3229 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests positional allows a defaultDescription to be set|occurrence=1
1 test · 3221 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command allows an array of commands to be provided|occurrence=1, yargs-test.mjs|title=ESM hierarchy of commands allows array of subcommands to be registered|occurrence=1
2 tests · 3239 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints validation resets custom check if global is false|occurrence=1
2 tests · 3252 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+middleware.mjs|title=middleware async check success allows async check to be used with command and middleware|occurrence=1
1 test · 3215 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests positional indicates that <foo> positional arguments are required|occurrence=1
1 test · 3218 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests async argv returns promise that resolves argv on success|occurrence=1
1 test · 3219 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command async returns promise that resolves arguments once handler succeeds|occurrence=1
2 tests · 3219 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests defaultDescription using positional() without default() should prefer given desc over function desc|occurrence=1
1 test · 3213 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional aliases allows variadic and positional arguments to be combined|occurrence=1
1 test · 3230 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests default command should display options (with descriptions) on failed default command|occurrence=1
1 test · 3220 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command allows builder function to return parsed argv|occurrence=1, command.mjs|title=Command allows builder function to parse argv without returning|occurrence=1
2 tests · 3240 LOC · 18 files · introduces 2 tests · 0 LOC · 0 files
+command.mjs|title=Command positional aliases allows an alias to be defined for a required positional argument|occurrence=1
1 test · 3228 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional arguments handles -- in conjunction with positional arguments|occurrence=1
1 test · 3229 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command variadic allows optional arguments to be variadic|occurrence=1, command.mjs|title=Command variadic does not fail if zero optional arguments are provided|occurrence=1, +1
3 tests · 3218 LOC · 18 files · introduces 3 tests · 0 LOC · 0 files
+middleware.mjs|title=middleware applyBeforeValidation=true does not cause an unexpected error when async middleware and strict are both used|occurrence=1
1 test · 3228 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+usage.mjs|title=usage tests help message caching should display proper usage when an async handler fails|occurrence=1
1 test · 3195 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+yargs.mjs|title=yargs dsl tests async parse calls parse callback once async handler has resolved|occurrence=1
2 tests · 3216 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command default commands allows command to be run when alias is default command|occurrence=1
1 test · 3214 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command global parsing hints aliases defaults to applying aliases globally|occurrence=1
1 test · 3260 LOC · 18 files · introduces 1 test · 0 LOC · 0 files
+command.mjs|title=Command positional arguments populates outer argv with positional arguments when unknown-options-as-args is set|occurrence=1
1 test · 3218 LOC · 18 files · introduces 1 test · 0 LOC · 0 files