Skip to content

Commit 06bc548

Browse files
butokd3zd3z
authored andcommitted
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 <[email protected]>
1 parent 79c284b commit 06bc548

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/imgtool/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ def convert(self, value, param, ctx):
377377
'keyword to automatically generate it from the image version.')
378378
@click.option('-v', '--version', callback=validate_version, required=True)
379379
@click.option('--align', type=click.Choice(['1', '2', '4', '8', '16', '32']),
380+
default='1',
380381
required=False,
381382
help='Alignment used by swap update modes.')
382383
@click.option('--max-align', type=click.Choice(['8', '16', '32']),

0 commit comments

Comments
 (0)