CR98: --stage-host - kommt an; --stage-host ohne Wert wird abgewiesen (D043) #76

Merged
oliver.maklott merged 2 commits from cr98-stage-host-dash into main 2026-11-28 13:24:06 +01:00

Befund: Hilfe und README nennen apcmd configure --stage-host - und apcmd install --stage-host - („-“: keine Bühne). apcmd antwortete „Unbekannte Option -“, seit es die Option gibt (0.11.0); nur --stage-host=- kam an. Zusätzlich gefunden: --stage-host ohne Wert war kein Fehler – configure nahm die Bühne weg, install richtete stage.<Domain> ein.

  • --stage-host - wirkt in configure und install wie --stage-host=- (Tests über main)
  • Ein einzelnes - an jeder anderen Stelle bleibt ein Fehler, auch nach --client-secret oder einer Ja/Nein-Option
  • Die Prüfung je Befehl (D042) gilt weiter und nennt die Option (update --stage-host -)
  • --stage-host ohne Wert (--stage-host, =, ""): Exit-Code 2, usage.value, kein Aufruf, die Bühne bleibt – neue Entscheidung D043
  • Hilfe und Tabelle stimmen überein; jedes gezeigte Beispiel mit - wird angenommen (neues Beispiel in configure --help)
  • fmt, lint, check, 223 Tests grün; keine neue Version

Offen: Regel für andere Optionen ohne Wert; configure --proxy … --stage-host … übergeht den Bühnen-Host.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2

Befund: Hilfe und README nennen `apcmd configure --stage-host -` und `apcmd install --stage-host -` („-“: keine Bühne). apcmd antwortete „Unbekannte Option -“, seit es die Option gibt (0.11.0); nur `--stage-host=-` kam an. Zusätzlich gefunden: `--stage-host` ohne Wert war kein Fehler – `configure` nahm die Bühne weg, `install` richtete `stage.<Domain>` ein. - [x] `--stage-host -` wirkt in `configure` und `install` wie `--stage-host=-` (Tests über `main`) - [x] Ein einzelnes `-` an jeder anderen Stelle bleibt ein Fehler, auch nach `--client-secret` oder einer Ja/Nein-Option - [x] Die Prüfung je Befehl (D042) gilt weiter und nennt die Option (`update --stage-host -`) - [x] `--stage-host` ohne Wert (`--stage-host`, `=`, `""`): Exit-Code 2, `usage.value`, kein Aufruf, die Bühne bleibt – neue Entscheidung D043 - [x] Hilfe und Tabelle stimmen überein; jedes gezeigte Beispiel mit `-` wird angenommen (neues Beispiel in `configure --help`) - [x] fmt, lint, check, 223 Tests grün; keine neue Version Offen: Regel für andere Optionen ohne Wert; `configure --proxy … --stage-host …` übergeht den Bühnen-Host. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2
The help of both commands and the README show `--stage-host <host|->`, `-` for
no stage. The argument parser takes nothing that starts with `-` as the value
of an option, so the form was refused as "Unbekannte Option -" since the option
exists (949c07b, 0.11.0-rc.1); only `--stage-host=-` reached the command.

main joins a lone `-` to the option before it parses, for the options that show
`-` as a value (DASH_FOR_NONE in src/options.ts, held against help and README
by a test). A lone `-` anywhere else is refused as before, also after another
option that takes a value: `oidc set --client-secret -` would otherwise store
`-` as the secret. The check per command (D042) reads the joined form and names
the option.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2
CR98: --stage-host without a value is refused before anything happens (D043)
All checks were successful
check / check (pull_request) Successful in 21s
check / check (push) Successful in 22s
release / release (push) Successful in 2s
b591d55ce3
Typed without a value the option was read as empty: `configure --stage-host`
took the stage away and restarted the stack, `install --stage-host` set up the
suggested stage.<domain> nobody named. None is spelled `-`; the empty forms
(`--stage-host`, `--stage-host=`, `--stage-host ""`) now end with exit code 2
and `usage.value`, before an instance is chosen or Docker is called. Other
options that take a value read an empty one as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aivopod/apcmd!76
No description provided.