Skip to content

Commit 0e8e8b4

Browse files
easelclaude
andcommitted
fix: remove confusing --format prompt alias to JSON in dun check [hx-4e05d540]
The --format flag accepted "prompt" as a value but treated it identically to "json", causing user confusion since the actual prompt output is produced by the separate --prompt flag. Removed "prompt" as a format value and changed the default to "json", aligning with the F-002 spec which only defines llm and json formats. Governing artifact: F-002 (Output Formats) Verification: all tests pass (go test ./...) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2e372a6 commit 0e8e8b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/dun/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ CHECK MODE:
125125
--config Config file path (default .dun/config.yaml; also loads user config)
126126
--prompt Output the loop prompt for the current repo state
127127
--all Include passing checks in prompt output
128-
--format Output format: prompt, llm, json
128+
--format Output format: llm, json (default: json)
129129
--automation Mode: manual, plan, auto, yolo (default: auto)
130130
--ignore-version Skip .ddx-version check
131131
@@ -230,7 +230,7 @@ func runCheck(args []string, stdout io.Writer, stderr io.Writer) int {
230230
fs := flag.NewFlagSet("check", flag.ContinueOnError)
231231
fs.SetOutput(stderr)
232232
configPath := fs.String("config", explicitConfig, "path to config file (default .dun/config.yaml if present; also loads user config)")
233-
format := fs.String("format", "prompt", "output format (prompt|llm|json)")
233+
format := fs.String("format", "json", "output format (llm|json)")
234234
promptOut := fs.Bool("prompt", false, "output loop prompt")
235235
allChecks := fs.Bool("all", false, "include passing checks in prompt output")
236236
automation := fs.String("automation", opts.AutomationMode, "automation mode (manual|plan|auto|yolo)")
@@ -292,7 +292,7 @@ func runCheck(args []string, stdout io.Writer, stderr io.Writer) int {
292292
switch *format {
293293
case "llm":
294294
printLLM(stdout, result)
295-
case "json", "prompt":
295+
case "json":
296296
compact := compactResultForOutput(result, root)
297297
if err := json.NewEncoder(stdout).Encode(compact); err != nil {
298298
fmt.Fprintf(stderr, "encode json: %v\n", err)

0 commit comments

Comments
 (0)