Clad
Clad is a simple command line arguments parser. It is inspired by the awesome rust library, clap.
Features
- Supports short (
-f
), long (--long
) and positional arguments. --option value
and--option=value
are allowed.-f value
,-f=value
and-fvalue
are also allowed.- You can combine short flags:
-Syu
is the same as-S -y -u
. - You can specify any flag to take multiple values.
- Supports required/optional flags.
- Supports per-argument validation with a closure.
- Simple interface.
- Auto generated help message.
Unsupported
For now there is no support for subcommands.
Import
Make sure to specify an exact version!
import * as clad from "https://deno.land/x/clad/mod.ts";
// Or take what you need:
// import { Command } from "https://deno.land/x/clad/mod.ts";
Usage Example
Please read this file.
Documentation
Coming soon.