CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-arg

Unopinionated, no-frills CLI argument parser for Node.js applications

Overall
score

99%

Overview
Eval results
Files

Evaluation results

100%

CLI Argument Parser Error Handler

Comprehensive error handling with error codes

Criteria
Without context
With context

Import arg package

100%

100%

Define argument spec

100%

100%

Use arg() function

100%

100%

Try-catch for errors

100%

100%

Access error.code

100%

100%

Access error.message

100%

100%

Return structured results

100%

100%

Handle unknown options

100%

100%

95%

65%

CLI Flag Parser

Boolean flag parsing

Criteria
Without context
With context

Uses arg function

100%

100%

Boolean type specification

0%

100%

String type specification

0%

100%

Alias configuration

0%

100%

Spec object format

0%

100%

Custom argv support

100%

100%

Result object usage

100%

0%

100%

15%

CLI Task Manager Argument Parser

Specification object definition and validation

Criteria
Without context
With context

Spec object structure

100%

100%

String type handler

100%

100%

Number type handler

100%

100%

Boolean type handler

100%

100%

Array type syntax

100%

100%

Counter utility usage

0%

100%

Alias definitions

100%

100%

Parser invocation

100%

100%

100%

Command Line Task Manager

Result object structure

Criteria
Without context
With context

Import arg function

100%

100%

Define specification object

100%

100%

Configure short aliases

100%

100%

Call arg function

100%

100%

Access named properties

100%

100%

Access positional arguments

100%

100%

100%

Command Executor with Argument Passthrough

Positional arguments collection (result._)

Criteria
Without context
With context

Import arg package

100%

100%

Define specification object

100%

100%

Use permissive mode

100%

100%

Pass custom argv

100%

100%

Access result._

100%

100%

Return complete result

100%

100%

Handle double-dash terminator

100%

100%

100%

Temperature Monitor CLI

Negative number parsing with type discrimination

Criteria
Without context
With context

Number type usage

100%

100%

Array type syntax

100%

100%

Proper spec structure

100%

100%

Alias configuration

100%

100%

String type usage

100%

100%

Boolean type usage

100%

100%

Custom argv handling

100%

100%

100%

Server Configuration Parser

Long argument support (--argument)

Criteria
Without context
With context

Uses arg function

100%

100%

Long argument keys

100%

100%

String type handler

100%

100%

Number type handler

100%

100%

Boolean type handler

100%

100%

Custom argv parameter

100%

100%

98%

CLI Verbosity Configuration Parser

Alias resolution chains

Criteria
Without context
With context

Import arg package

100%

100%

Define canonical argument

100%

100%

Create direct short alias

100%

100%

Create direct long alias

100%

100%

Create alias chain

100%

100%

Call arg function

100%

100%

Return parsed result

60%

60%

100%

Configuration Value Parser

Number type parsing

Criteria
Without context
With context

Import arg package

100%

100%

Define specification object

100%

100%

Use Number handler

100%

100%

Call arg function

100%

100%

Integer parsing

100%

100%

Decimal parsing

100%

100%

Negative number parsing

100%

100%

Return parsed result

100%

100%

100%

Configuration Parser

Equals syntax for long arguments (--arg=value)

Criteria
Without context
With context

Import arg package

100%

100%

Define specification object

100%

100%

Use String type

100%

100%

Use Number type

100%

100%

Use Boolean type

100%

100%

Call arg function

100%

100%

Handle equals syntax

100%

100%

Return parsed result

100%

100%

Install with Tessl CLI

npx tessl i tessl/npm-arg
Evaluated
Agent
Claude Code

Table of Contents