Unopinionated, no-frills CLI argument parser for Node.js applications
Overall
score
99%
{
"context": "This evaluation assesses the engineer's proficiency in using the arg package to parse command-line arguments with equals syntax (--arg=value). The focus is on correctly configuring the arg specification object and utilizing the package's built-in support for equals syntax with various data types.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import arg package",
"description": "Correctly imports the arg package using require() or import statement",
"max_score": 5
},
{
"name": "Define specification object",
"description": "Creates a specification object that maps argument names (starting with --) to type handlers (String, Number, Boolean) for all required configuration options",
"max_score": 20
},
{
"name": "Use String type",
"description": "Uses the String type handler for string arguments (--host, --root, --log, --api-key) in the specification object",
"max_score": 15
},
{
"name": "Use Number type",
"description": "Uses the Number type handler for numeric arguments (--port, --max-size) in the specification object",
"max_score": 15
},
{
"name": "Use Boolean type",
"description": "Uses the Boolean type handler for flag arguments (--https) in the specification object",
"max_score": 10
},
{
"name": "Call arg function",
"description": "Invokes the arg() function with the specification object and passes the argv parameter correctly",
"max_score": 15
},
{
"name": "Handle equals syntax",
"description": "Demonstrates that the implementation correctly handles equals syntax (--arg=value) by relying on arg's built-in support without custom parsing logic",
"max_score": 10
},
{
"name": "Return parsed result",
"description": "Returns the result object from arg() which contains the parsed configuration values",
"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