Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/line/src/arg_parser.ts>setArgumentsMapInitialValues

A class-based, command-line interface (CLI) framework.
Latest
function setArgumentsMapInitialValues
import { setArgumentsMapInitialValues } from "https://deno.land/x/line@v1.0.1/src/arg_parser.ts";

Take a command's arguments Map (e.g., #arguments_map prop) and set the initial values of each argument.

Parameters

commandSignature: string
  • The command's signature prop.
commandName: string
  • If run [arg] is the signature, then run is the name.
argsDescriptions: TArgument
  • The command's argument descriptions (if any).
argsMap: Map<string, IArgument>
  • The command's arguments Map (e.g., #arguments_map prop).