From 2f7c5f2bd66f80ec4da1160d12ac7bf577da7a75 Mon Sep 17 00:00:00 2001 From: Andrej Butok Date: Tue, 19 Dec 2023 10:36:08 +0100 Subject: [PATCH] imgtool: fix "align" script error Fix "align" possible script error, caused by #1833. Set default value for the align parameter. Signed-off-by: Andrej Butok --- scripts/imgtool/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/imgtool/main.py b/scripts/imgtool/main.py index 9dd033c41..e24c9a087 100755 --- a/scripts/imgtool/main.py +++ b/scripts/imgtool/main.py @@ -377,6 +377,7 @@ def convert(self, value, param, ctx): 'keyword to automatically generate it from the image version.') @click.option('-v', '--version', callback=validate_version, required=True) @click.option('--align', type=click.Choice(['1', '2', '4', '8', '16', '32']), + default='1', required=False, help='Alignment used by swap update modes.') @click.option('--max-align', type=click.Choice(['8', '16', '32']),