Unopinionated, no-frills CLI argument parser for Node.js applications
Overall
score
99%
{
"context": "This criteria evaluates how well the engineer uses the arg package to parse long-form command-line arguments (--argument syntax), including proper specification object setup, type handlers, and support for both space-separated and equals syntax.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses arg function",
"description": "Imports and calls the arg() function from the arg package to parse command-line arguments",
"max_score": 20
},
{
"name": "Long argument keys",
"description": "Defines specification object with correct long argument keys starting with -- (--host, --port, --verbose, --ssl, --config)",
"max_score": 25
},
{
"name": "String type handler",
"description": "Uses String type handler for --host and --config arguments in the specification object",
"max_score": 15
},
{
"name": "Number type handler",
"description": "Uses Number type handler for --port argument in the specification object",
"max_score": 15
},
{
"name": "Boolean type handler",
"description": "Uses Boolean type handler for --verbose and --ssl flag arguments in the specification object",
"max_score": 15
},
{
"name": "Custom argv parameter",
"description": "Passes the argv parameter to arg() function using the options object with argv property, rather than relying on process.argv",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-argdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10