Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/powar/deps.ts>cliffy.Command#hasCommand

A simple but powerful TypeScript-based dot-file manager.
Go to Latest
method cliffy.Command.prototype.hasCommand
Re-export
import { cliffy } from "https://deno.land/x/powar@1.0.3/deps.ts";
const { Command } = cliffy;

Checks whether a child command exists by given name or alias.

Parameters

name: string

Name or alias of the command.

optional
hidden: boolean

Include hidden commands.

Returns

boolean