mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 11:20:43 +00:00
fix: align docs with cli and provider surfaces
This commit is contained in:
@@ -11,7 +11,9 @@ export function removeCommand(program: Command, command: Command): boolean {
|
||||
}
|
||||
|
||||
export function removeCommandByName(program: Command, name: string): boolean {
|
||||
const existing = program.commands.find((command) => command.name() === name);
|
||||
const existing = program.commands.find(
|
||||
(command) => command.name() === name || command.aliases().includes(name),
|
||||
);
|
||||
if (!existing) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user