lib
455 root concepts · page 1 of 10
+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
+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 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 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
+yargs.mjs|title=yargs dsl tests async argv caches deeply nested help output, so that it can be output by showHelp()|occurrence=1
1 test · 3253 LOC · 18 files · introduces 1 test · 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
+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
+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
+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