Skip to content

Commit 25b7c7a

Browse files
butokd3zd3z
authored andcommitted
imgtool: make "align" command line parameter optional
Align parameter should be optional: - it has a default value. - it is not used for non-swap update modes. Signed-off-by: Andrej Butok <[email protected]>
1 parent 301d565 commit 25b7c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/imgtool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +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-
required=True)
380+
required=False)
381381
@click.option('--max-align', type=click.Choice(['8', '16', '32']),
382382
required=False,
383383
help='Maximum flash alignment. Set if flash alignment of the '

0 commit comments

Comments
 (0)