Add icontool to amitools#226
Open
reinauer wants to merge 1 commit into
Open
Conversation
usage: icontool [-h] [--list] [--get KEY] [--set KEY=VAL] [--set-flag KEY] [--unset KEY] [--delete KEY] [--normalize]
[--ignore-case] [--pos X,Y] [--winsize W,H] [--compact] [--strict] [--dry-run] [--backup] paths [paths ...]
Batch edit Amiga Workbench .info ToolTypes / icon position / drawer window size
positional arguments:
paths Paths to .info files (or base names without .info)
options:
-h, --help show this help message and exit
--list List parsed metadata + tooltypes
--get KEY Get ToolType KEY. For booleans, prints KEY=true/false. Accepts KEY or (KEY).
--set KEY=VAL Set/replace ToolType KEY=VAL
--set-flag KEY Set boolean ToolType KEY (writes KEY)
--unset KEY Unset/disable boolean ToolType KEY (writes (KEY))
--delete KEY Delete ToolType KEY (removes KEY, (KEY), and KEY=VAL)
--normalize Normalize tooltypes (last-wins per key, remove empties)
--ignore-case Match keys case-insensitively
--pos X,Y Set DiskObject CurrentX,CurrentY (icon placement)
--winsize W,H Disk/Drawer: set DrawerData NewWindow Width,Height
--compact Rebuild file to compact segments (esp. ToolTypes)
--strict Fail fast on suspicious lengths/bounds
--dry-run Don’t write, just show what would change
--backup Write .bak backup once before modifying
Contributor
Author
|
I added some further improvements to icontool and stored it here for the time being: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
usage: icontool [-h] [--list] [--get KEY] [--set KEY=VAL] [--set-flag KEY] [--unset KEY] [--delete KEY] [--normalize]
[--ignore-case] [--pos X,Y] [--winsize W,H] [--compact] [--strict] [--dry-run] [--backup] paths [paths ...]
Batch edit Amiga Workbench .info ToolTypes / icon position / drawer window size
positional arguments:
paths Paths to .info files (or base names without .info)
options:
-h, --help show this help message and exit
--list List parsed metadata + tooltypes
--get KEY Get ToolType KEY. For booleans, prints KEY=true/false. Accepts KEY or (KEY).
--set KEY=VAL Set/replace ToolType KEY=VAL
--set-flag KEY Set boolean ToolType KEY (writes KEY)
--unset KEY Unset/disable boolean ToolType KEY (writes (KEY))
--delete KEY Delete ToolType KEY (removes KEY, (KEY), and KEY=VAL)
--normalize Normalize tooltypes (last-wins per key, remove empties)
--ignore-case Match keys case-insensitively
--pos X,Y Set DiskObject CurrentX,CurrentY (icon placement)
--winsize W,H Disk/Drawer: set DrawerData NewWindow Width,Height
--compact Rebuild file to compact segments (esp. ToolTypes)
--strict Fail fast on suspicious lengths/bounds
--dry-run Don’t write, just show what would change
--backup Write .bak backup once before modifying