The CLI is a mode of anm2ed (anm2ed info|frame|render ...), not a separate binary

On Windows it attaches to the console it was started from, and gets UTF-8
arguments like the editor does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-05 13:34:36 -04:00
1 parent 2dbbfa5e86
commit abb9f965d6
5 files changed
+63 -38

No files matched your search

+5 -5
View File
@@ -57,10 +57,10 @@ ctest --test-dir build
Render tests draw with OpenGL (skipped without a display) and leave their images in `build/renders`.
## Command Line
`anm2ed-cli` looks at a file without the editor, drawing with the editor's renderer:
`anm2ed <command>` looks at a file without opening the editor, drawing with the editor's renderer:
```sh
anm2ed-cli info file.anm2 # animations, items, spritesheets, Isaac issues
anm2ed-cli frame file.anm2 --out frame.png --time 4 # one frame
anm2ed-cli render file.anm2 --out sheet.png --scale 3 # every frame in a grid (--type pngs|gif|webm|mp4|ogv)
anm2ed info file.anm2 # animations, items, spritesheets, Isaac issues
anm2ed frame file.anm2 --out frame.png --time 4 # one frame
anm2ed render file.anm2 --out sheet.png --scale 3 # every frame in a grid (--type pngs|gif|webm|mp4|ogv)
```
Common options: `--animation NAME|INDEX`, `--scale`, `--fps`, `--start`/`--end`, `--background RRGGBB`. Run it without arguments for the full list.
Common options: `--animation NAME|INDEX`, `--scale`, `--fps`, `--start`/`--end`, `--background RRGGBB`. `anm2ed render` alone lists them all.