aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-06-02 08:03:59 +0100
committerJuan J. Martinez <jjm@usebox.net>2021-06-02 08:03:59 +0100
commit35f6238e8ca32285617b297e1cfd64b540339a3d (patch)
tree857ab18588a5c3dbbd16d0a97181552a399eb82c /tools
parent279856dc3d1825f16c86d9d6624064cf4a45cd95 (diff)
downloadubox-msx-lib-35f6238e8ca32285617b297e1cfd64b540339a3d.tar.gz
ubox-msx-lib-35f6238e8ca32285617b297e1cfd64b540339a3d.zip
Better CLI variable, wording in help
Diffstat (limited to 'tools')
-rwxr-xr-xtools/png2sprites.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/png2sprites.py b/tools/png2sprites.py
index 2fb0054..59a9ef0 100755
--- a/tools/png2sprites.py
+++ b/tools/png2sprites.py
@@ -59,8 +59,8 @@ def main():
help="variable name (default: sprites)")
parser.add_argument("-a", "--asm", dest="asm", action="store_true",
help="ASM output (default: C header)")
- parser.add_argument("-c", "--colors", dest="colors", action="store_true",
- help="print frame color as comment (default: false)")
+ parser.add_argument("-c", "--colors", dest="frame_colors", action="store_true",
+ help="include frame color as a comment")
parser.add_argument("image", help="image to convert")
@@ -114,7 +114,7 @@ def main():
for i, frame in enumerate(out):
print("%s_frame%d:" % (args.id, i))
- if args.colors:
+ if args.frame_colors:
print("\t; color: #%02x%02x%02x" % (frame_colors[i][0],
frame_colors[i][1],
frame_colors[i][2]))
@@ -127,7 +127,7 @@ def main():
data_out = ""
for i, frame in enumerate(out):
- if args.colors:
+ if args.frame_colors:
data_out += '/* color: 0x%02x%02x%02x */\n' % (frame_colors[i][0],
frame_colors[i][1],
frame_colors[i][2])