F

unregister

Removes a root command added with register, with its subcommands. Does nothing when there is none.

function unregister(name: string): void

Parameters

NameTypeDescription
namestring

The root command's name.

Returns

void