Files
oh-my-pi/packages/coding-agent/src/cli/usage-error.ts
T
roboomp d670dd5d94 fix(cli): reported max-time parse errors cleanly
- Added a CLI usage-error type for argument validation failures.
- Reported invalid --max-time values from launch and ACP as clean usage errors with exit code 2.
- Covered the no-stack-trace CLI error path for invalid max-time input.

Fixes #5041
2026-07-10 07:45:27 +00:00

8 lines
208 B
TypeScript

/** Command-line input error that should be rendered without a stack trace. */
export class CliUsageError extends Error {
constructor(message: string) {
super(message);
this.name = "CliUsageError";
}
}