Skip to content

Commit 1e9babe

Browse files
chore: disambiguate removed rotate alias error message (#1277)
Update the migration error so users who meant the two-finger gesture are pointed to `gesture rotate` instead of `orientation`. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 846e3e0 commit 1e9babe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/cli/parser/args.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,10 @@ export async function usageForCommand(command: string): Promise<string | null> {
385385

386386
function normalizeCommandAlias(command: string): string {
387387
if (command.toLowerCase() === 'rotate') {
388-
throw new AppError('INVALID_ARGS', 'rotate was renamed to orientation');
388+
throw new AppError(
389+
'INVALID_ARGS',
390+
'rotate was renamed to orientation; for the two-finger gesture use: gesture rotate',
391+
);
389392
}
390393
return normalizeCliCommandAlias(command);
391394
}

0 commit comments

Comments
 (0)