fix(cli): --pack daw-code (space) not parsed correctly, only --pack=daw-code works #4

Closed
opened 2026-05-18 22:28:57 +02:00 by michael · 2 comments
Owner

Problem

bin/fragjan code . --pack daw-code funktioniert nicht.
--pack daw-code (Leerzeichen) setzt parsed.flags["pack"] = true
statt "daw-code".

Nur --pack=daw-code (Gleichheitszeichen) funktioniert.

Loesung

Parser in berhtjan-cli dispatch.lua unterstuetzt bereits --key=value.
Entweder:

  1. Parser um --key value (Leerzeichen) erweitern
  2. Dokumentation: = ist Pflicht fuer Flag-Werte

Entdeckt bei

fragjan MVP erster Lauf.

## Problem `bin/fragjan code . --pack daw-code` funktioniert nicht. `--pack daw-code` (Leerzeichen) setzt parsed.flags["pack"] = true statt "daw-code". Nur `--pack=daw-code` (Gleichheitszeichen) funktioniert. ## Loesung Parser in berhtjan-cli dispatch.lua unterstuetzt bereits `--key=value`. Entweder: 1. Parser um `--key value` (Leerzeichen) erweitern 2. Dokumentation: `=` ist Pflicht fuer Flag-Werte ## Entdeckt bei fragjan MVP erster Lauf.
Author
Owner

Handed off to daw-modul-berhtjan-cli team.
Fix needs to happen in dispatch.lua in DAW/daw-modul-berhtjan-cli.
Tracking issue: DAW/daw-modul-berhtjan-cli#2

Waiting for response before closing this issue.

Handed off to daw-modul-berhtjan-cli team. Fix needs to happen in dispatch.lua in DAW/daw-modul-berhtjan-cli. Tracking issue: DAW/daw-modul-berhtjan-cli#2 Waiting for response before closing this issue.
michael added this to the Basic Version milestone 2026-05-30 16:08:29 +02:00
Author
Owner

Fixed in DAW/daw-modul-berhtjan-cli#2 (v1.1.4).
parse_args() now consumes next arg as value when --flag has no = and next arg does not start with -.
Both --pack=daw-code and --pack daw-code work correctly.

Fixed in DAW/daw-modul-berhtjan-cli#2 (v1.1.4). parse_args() now consumes next arg as value when --flag has no = and next arg does not start with -. Both --pack=daw-code and --pack daw-code work correctly.
michael 2026-06-02 19:45:30 +02:00
Sign in to join this conversation.
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
DAW/fragjan#4
No description provided.