Skip to main content

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

This package works with Deno
JSR Score
88%
Published
4 weeks ago (1.0.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

Add Package

deno add @ploiu/arg-helper

Import symbol

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