Skip to content

patch.py --help lists the device's options; drop --clock-tileset-index - #123

Merged
BrianPugh merged 1 commit into
mainfrom
cli-help-cleanup
Oct 20, 2026
Merged

BrianPugh merged 1 commit into
mainfrom
cli-help-cleanup

Conversation

@BrianPugh

Copy link
Copy Markdown
Owner

patch.py --help printed only the shared options for every device (the amalgam too): the first parse_known_args() saw -h and exited before the device added its options, which also made the amalgam's own help branch in amalgam.configure unreachable.

  • -h is added after the first parse; with --help, the device's options (both models' for --device=amalgam, with conflict_handler="resolve") are added before printing.
  • Device.add_arguments is a classmethod (no implementation used the instance), so --help works without the stock backups.
  • make help passes PATCH_PARAMS through: make PATCH_PARAMS="--device=zelda" help.
  • --clock-tileset-index is removed (accepted but never read), along with its README row.

Testing: all 464 tests pass and the golden hashes are unchanged (output is byte-identical); checked --help for mario, zelda and amalgam, and from a directory without backups. No hardware check needed.

🤖 Generated with Claude Code

The first parse_known_args() saw -h and exited before any device added
its options, so --help showed only the shared ones (the amalgam's own
help branch was unreachable). -h is now added after that parse, and with
--help the device's options (both models' for the amalgam) are added
before printing. Device.add_arguments is a classmethod, so help needs no
stock backups. make help passes PATCH_PARAMS through.

--clock-tileset-index was accepted but never read.

Output unchanged (golden hashes match).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BrianPugh
BrianPugh merged commit 1ae8655 into main Oct 20, 2026
1 check passed
@BrianPugh
BrianPugh deleted the cli-help-cleanup branch October 20, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant