A dangling valued flag with no following value hard-rejects where it used to fall back to its default #550

Closed
opened 2026-09-13 09:07:08 +00:00 by mph · 2 comments
Owner

iw kanon/feedback "Title" --type reports '--type requires a value.' and exits 1, where the previous hand-written helpers treated it as absent and --type fell back to Feature. consumeValue returns Rejection.MissingValue (core/model/CommandArgParser.scala:227). This is fail-safe, so it is reported rather than argued against, but it is a behaviour change worth confirming as intended.


Type: bug
Filed from: /home/mph/ops/kanon-DEVDOCS-246 on branch DEVDOCS-246

`iw kanon/feedback "Title" --type` reports '--type requires a value.' and exits 1, where the previous hand-written helpers treated it as absent and --type fell back to Feature. consumeValue returns Rejection.MissingValue (core/model/CommandArgParser.scala:227). This is fail-safe, so it is reported rather than argued against, but it is a behaviour change worth confirming as intended. --- **Type:** bug **Filed from:** `/home/mph/ops/kanon-DEVDOCS-246` on branch `DEVDOCS-246`
Member

Intake: needs-human — not actionable as filed.

This issue asks only that the behaviour be confirmed as intended, and the repository already answers "intended", so there is no change left to build:

  • Two shipped tests pin a dangling optional valued flag as exit-1 MissingValue: core/test/OpenHarnessTest.scala:62-70 and core/test/StartHarnessTest.scala:72-80, both --prompt with no value — an optional flag that has a fallback, exactly the shape --type has.
  • The 2026-09-03 ruling recorded at project-management/issues/IW-463/implementation-log.md:1788,1829 holds one value-handling rule across all commands.

Left open for you rather than closed, because "confirm as intended" is your confirmation to give. If you agree, close it; if the old fallback should come back, that is a decision that reopens the IW-463 ruling and wants its own issue.

Not a duplicate of the siblings: #548 (last-wins on a repeated non-repeated flag), #549 (a multi-word value filling an operand) and #552 (a value beginning with --) are separate defects in the same function, and fixing none of them closes this one.

Intake: needs-human — not actionable as filed. This issue asks only that the behaviour be confirmed as intended, and the repository already answers "intended", so there is no change left to build: - Two shipped tests pin a dangling optional valued flag as exit-1 `MissingValue`: `core/test/OpenHarnessTest.scala:62-70` and `core/test/StartHarnessTest.scala:72-80`, both `--prompt` with no value — an optional flag that has a fallback, exactly the shape `--type` has. - The 2026-09-03 ruling recorded at `project-management/issues/IW-463/implementation-log.md:1788,1829` holds one value-handling rule across all commands. Left open for you rather than closed, because "confirm as intended" is your confirmation to give. If you agree, close it; if the old fallback should come back, that is a decision that reopens the IW-463 ruling and wants its own issue. Not a duplicate of the siblings: #548 (last-wins on a repeated non-repeated flag), #549 (a multi-word value filling an operand) and #552 (a value beginning with `--`) are separate defects in the same function, and fixing none of them closes this one.
Member

Working as designed — closed by Michal in a human-review session.
A dangling optional valued flag is refused with MissingValue on purpose: OpenHarnessTest and StartHarnessTest pin it, and the IW-463 ruling records it. No change is wanted.

Working as designed — closed by Michal in a human-review session. A dangling optional valued flag is refused with MissingValue on purpose: OpenHarnessTest and StartHarnessTest pin it, and the IW-463 ruling records it. No change is wanted.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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
iterative-works/iw-cli#550
No description provided.