{"version":"2.1.324","anchor":"output-dir-now-rejects-an-empty-path","canonical_anchor":"output-dir-now-rejects-an-empty-path","heading":"Passing an empty path to --output-dir is now an error","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/output-dir-now-rejects-an-empty-path","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Passing an empty path to `--output-dir` is now an error\n\n`--output-dir` with an empty value now stops with an error instead of quietly using the default results folder\n\n**What**\n\n`--output-dir` is a flag (an option typed on the command line) that says where results are written. If you pass it an empty value, Claude Code now exits with an error telling you to give a folder or leave the flag out. Before, it silently used the default results folder.\n\n**Why**\n\nA script that fills in `--output-dir` from a variable that turns out to be empty will now fail clearly instead of writing results somewhere you did not choose.\n\n- Area: Elsewhere\n- Names: `--output-dir`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}