Skip to content

Commit 3c3f80a

Browse files
authored
fix(cli): remove short flag collision on -e in health command (#1343)
The health command's `endpoint` flag and the shared `env` flag both declared `char: 'e'`, causing ambiguity. Remove the short flag from `endpoint` so `-e` unambiguously maps to `--env`.
1 parent 9f3551c commit 3c3f80a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎.changeset/clever-maps-hop.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@workflow/cli": patch
3+
---
4+
5+
Fix `-e` short flag collision between `--endpoint` and `--env` in health command

‎packages/cli/src/commands/health.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,11 @@ export default class Health extends BaseCommand {
223223

224224
static flags = {
225225
endpoint: Flags.string({
226-
char: 'e',
227226
description: 'Which endpoint(s) to check',
228227
options: ['workflow', 'step', 'both'],
229228
default: 'both',
230229
helpGroup: 'Health Check',
231-
helpLabel: '-e, --endpoint',
230+
helpLabel: '--endpoint',
232231
helpValue: ['workflow', 'step', 'both'],
233232
}),
234233
timeout: Flags.integer({

0 commit comments

Comments
 (0)