Skip to main content
Module

x/cmd/mod.ts>Command#addCommand

Commander.js (command-line interfaces) for Deno.
Latest
method Command.prototype.addCommand
import { Command } from "https://deno.land/x/cmd@v1.2.0/mod.ts";

Add a prepared subcommand.

See .command() for creating an attached subcommand which inherits settings from its parent.

Parameters

cmd: Command
  • new subcommand
optional
opts: CommandOptions