lib
455 root concepts · page 2 of 10
+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
+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
+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
+middleware.mjs|title=middleware async check failure allows error to be caught before calling command|occurrence=1
1 test · 3225 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-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
+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
+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
+middleware.mjs|title=middleware applyBeforeValidation=true applies aliases before middleware is called, when middleware is added in builder|occurrence=1
1 test · 3260 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 aliases allows several aliases to be defined for a required positional argument|occurrence=1
1 test · 3263 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
+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
+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 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
+usage.mjs|title=usage tests defaultDescription using positional() with default() should prefer default() desc when given last|occurrence=1, usage.mjs|title=usage tests defaultDescription using positional() with default() should prefer positional() desc when given last|occurrence=1
2 tests · 3204 LOC · 18 files · introduces 2 tests · 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
+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