aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/cli/painter/make_font.py
diff options
context:
space:
mode:
authorPablo Martínez <[email protected]>2024-11-21 07:16:46 +0100
committerGitHub <[email protected]>2024-11-21 17:16:46 +1100
commit88afd53b1fb4183195ac5ee9d1d1c9506de3814e (patch)
treeaf3c29726f93ddf6ef69bbd0125c1e2984ead405 /lib/python/qmk/cli/painter/make_font.py
parent9c865839819bf9ec3ed573354a53bcbe905080f7 (diff)
downloadqmk_firmware-88afd53b1fb4183195ac5ee9d1d1c9506de3814e.tar.gz
qmk_firmware-88afd53b1fb4183195ac5ee9d1d1c9506de3814e.zip
[CLI] Refactor painter arguments to table instead of commandline (#24456)
Co-authored-by: Nick Brassel <[email protected]>
Diffstat (limited to 'lib/python/qmk/cli/painter/make_font.py')
-rw-r--r--lib/python/qmk/cli/painter/make_font.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/python/qmk/cli/painter/make_font.py b/lib/python/qmk/cli/painter/make_font.py
index 19db844931..3e18fd74a5 100644
--- a/lib/python/qmk/cli/painter/make_font.py
+++ b/lib/python/qmk/cli/painter/make_font.py
@@ -61,10 +61,8 @@ def painter_convert_font_image(cli):
return
# Work out the text substitutions for rendering the output data
- args_str = " ".join((f"--{arg} {getattr(cli.args, arg.replace('-', '_'))}" for arg in ["input", "output", "no-ascii", "unicode-glyphs", "format", "no-rle"]))
- command = f"qmk painter-convert-font-image {args_str}"
metadata = {"glyphs": _generate_font_glyphs_list(not cli.args.no_ascii, cli.args.unicode_glyphs)}
- subs = generate_subs(cli, out_bytes, font_metadata=metadata, command=command)
+ subs = generate_subs(cli, out_bytes, font_metadata=metadata, command_name="painter_convert_font_image")
# Render and write the header file
header_text = render_header(subs)