From 86b478e609a5d95866b50b938726647b6287d059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Sol=C3=A1r?= Date: Mon, 9 Nov 2026 14:35:37 +0100 Subject: [PATCH] fix: align uppercase short flags in help output The continuation-line indent check in `pushFlags()` was case-sensitive, so flags with an uppercase short form (`-H`, `-X`) were treated as having no short form and got four extra spaces. Co-Authored-By: Claude Opus 5 --- docs/reference.md | 4 +-- src/lib/command-framework/help/CommandHelp.ts | 2 +- test/local/lib/command-framework/help.test.ts | 25 +++++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/docs/reference.md b/docs/reference.md index 420618be4..c58dae1ae 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -78,14 +78,14 @@ FLAGS Leading slashes and a version prefix in the path are optional. For example, "actor-runs/{runId}" and "/v2/actor-runs/{runId}" are both accepted. - -H, --header= Additional HTTP header(s). Pass a + -H, --header= Additional HTTP header(s). Pass a single "key:value" string, or a JSON object like '{"X-Foo": "bar", "X-Baz": "qux"}' to send multiple headers. The flag can only be used once; use the JSON form for multiple headers. -l, --list-endpoints List all available Apify API endpoints. - -X, --method=