Function: cli()
ts
function cli<A>(
argv,
entry,
opts): Promise<undefined | string>;Run the command.
Type Parameters
| Type Parameter | Default type |
|---|---|
A extends Args | Args |
Parameters
| Parameter | Type | Description |
|---|---|---|
argv | string[] | - |
entry | | Command<A> | CommandRunner<A> | A entry command or an inline command runner |
opts | CommandOptions<A> | A command options |
Returns
Promise<undefined | string>
A rendered usage or undefined. if you will use CommandOptions.usageSilent option, it will return rendered usage string.
