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 <andrey.butok@nxp.com>
This commit is contained in:
Andrej Butok 2023-12-19 10:36:08 +01:00 committed by David Brown
parent 79c284b0a5
commit 06bc54846d
1 changed files with 1 additions and 0 deletions

View File

@ -377,6 +377,7 @@ class BasedIntParamType(click.ParamType):
'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']),