Skip to main content
Home

validates simple arguments passed to your Deno script and generates help text if users use it incorrectly

This package works with Deno
This package works with Deno
JSR Score
88%
Published
2 months ago (1.1.0)

Validates your arguments and generates formatted help text for your simple scripts.

This is not meant for entire CLIs where each argument is like its own entire program. Rather, this is for simple scripts that you could hack together in 30 minutes but don't want to spend time creating, formatting, and tweaking help text; or manually validating those arguments.

see validateArgs and buildHelpText to get started with examples

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@ploiu/arg-helper

Import symbol

import * as arg_helper from "@ploiu/arg-helper";
or

Import directly with a jsr specifier

import * as arg_helper from "jsr:@ploiu/arg-helper";