Skip to main content
Module

x/denomander/src/Arguments.ts>default

Deno command-line interfaces made easy
Latest
class default
implements ArgumentsContract
import { default } from "https://deno.land/x/denomander@0.9.3/src/Arguments.ts";

It parses the arguments and splits them into commands and options

Constructors

new
default(args: Array<string>)

Constructor of Arguments object

Properties

protected
_all: CustomArgs

All arguments parsed

protected
_commands: Array<string>

Command arguments

protected
_options: CustomArgs

Option arguments

protected
unparsed_args: Array<string>

Aruments from Deno.args (unparsed)

readonly
all

Getter of all arguments

readonly
commands: Array<string>

Getter of command arguments

readonly
options

Getter of option arguments

Methods

protected
extractCommands(args: CustomArgs): Array<string>

Splits the arguments and gets the commands

Splits the arguments and gets the options

parse(): void

It parses the args