fix: missing app command args

This commit is contained in:
chenos 2022-02-07 21:54:07 +08:00
parent ce52361ac4
commit ab28a2be4c

View File

@ -132,12 +132,12 @@ export class Application<StateT = DefaultState, ContextT = DefaultContext> exten
return this.resourcer.registerActions(handlers); return this.resourcer.registerActions(handlers);
} }
command(nameAndArgs: string, opts?: CommandOptions) { command(name: string, desc?: string, opts?: CommandOptions): Command {
return this.cli.command(nameAndArgs, opts); return this.cli.command(name, desc, opts);
} }
findCommand(name: string): Command { findCommand(name: string): Command {
return (this.cli as any)._findCommand(name); return this.cli._findCommand(name);
} }
async load() { async load() {