Skip to main content
Module

x/quarrel/mod.ts>Quarrel

A Deno command line argument parser, highly configurable, and fast (well, not yet)
Latest
class Quarrel
import { Quarrel } from "https://deno.land/x/quarrel@v0.5.0/mod.ts";

Constructors

new
Quarrel(name?: String | string, version?:
| String
| string
| Number
| number
)

Properties

private
expressions: Map<String | string, RegExp>
private
methods: Map<String | string, lessFlagOptions>
altNames: Map<String | string, String | string>
arguments: Map<String | string, command>
flags: Array<String | string>
name: String | string
version:
| String
| string
| Number
| number

Methods

private
runMiddleware(args: Array<string>, value: String | string)
flag(
shortName: String | string,
longName: String | string,
description: String | string,
options?: flagOptions | Function | null,
): void
run(): void