Skip to content

Commit 41b81f9

Browse files
wormeymanclaude
andcommitted
Ask the binary for CLI options, not the wiki
`factorio --help` prints every option and ships with the game, so it describes the version you actually have. It is also ahead of the wiki: it documents `--map-preview-planet`, `--map-gen-seed-max` and `--exchange-string`, and it states outright that `--map-gen-seed` "will override seed specified in map gen settings" - the trap #232 hit, answered by the tool itself. The wiki page stays named as a fallback for prose the help text does not carry. The docs snapshot is verbatim, so it keeps the old wording and its header now flags that one line as superseded. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017hVzDgUq6g7LATfczGxUrE
1 parent f1e887b commit 41b81f9

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

CLAUDE.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,19 @@ inert off WSL.
145145

146146
### Automate with the Factorio headless CLI
147147

148-
A lot can be driven from the command line - see
149-
<https://wiki.factorio.com/Command_line_parameters> (a wiki page, not in the
150-
shipped API docs). Relevant here:
148+
**Ask the binary, not the wiki: `factorio --help` prints every option.** It
149+
ships with the game, so it describes the version you actually have, and it is
150+
ahead of the wiki - it documents `--map-preview-planet`, `--map-gen-seed-max`
151+
and `--exchange-string`, and it says outright that `--map-gen-seed` "will
152+
override seed specified in map gen settings", which is the trap #232 hit.
153+
<https://wiki.factorio.com/Command_line_parameters> is a fallback for prose the
154+
help text does not carry.
155+
156+
```bash
157+
"$HOME/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/MacOS/factorio" --help
158+
```
159+
160+
Relevant here:
151161

152162
- **Map-gen testing:** `factorio --create <save> --map-gen-settings <json>
153163
--map-gen-seed <n> --mod-directory <dir>` runs headless and exits cleanly even

docs/factorio-reference-and-oracle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ rule.
3030
Nothing below has been edited. It is a snapshot; `CLAUDE.md` is the current
3131
state.
3232

33+
**One thing below is already superseded.** The headless-CLI section points at
34+
`wiki.factorio.com/Command_line_parameters` first. Run `factorio --help`
35+
instead: it ships with the game, so it describes the version you actually have,
36+
and it is ahead of the wiki.
37+
3338
---
3439

3540
## Factorio reference material - read it with `factorio-oracle refs`

0 commit comments

Comments
 (0)