Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/args/index.ts>commands.SubCommandReturn

Extensible CLI arguments parser for Deno with intelligent TypeScript inference
Go to Latest
type alias commands.SubCommandReturn
import { type commands } from "https://deno.land/x/args@2.1.0/index.ts";
const { SubCommandReturn } = commands;

Type of value of SubCommand

Type Parameters

Main extends CommandReturn<any, any, any>

Type of main wrapper

Name extends string

Type of subcommand name

Sub extends CommandReturn<any, any, any>

Subcommand parser

definition: Main | CommandReturn.Sub<Name, Sub>