Skip to content

Add icontool to amitools#226

Open
reinauer wants to merge 1 commit into
cnvogelg:mainfrom
reinauer:icons
Open

Add icontool to amitools#226
reinauer wants to merge 1 commit into
cnvogelg:mainfrom
reinauer:icons

Conversation

@reinauer
Copy link
Copy Markdown
Contributor

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

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
@reinauer
Copy link
Copy Markdown
Contributor Author

I added some further improvements to icontool and stored it here for the time being:
https://github.com/reinauer/icontool

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