Skip to content

Commit

Permalink
imgtool: make "align" command line parameter optional
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
butok authored and d3zd3z committed Nov 1, 2023
1 parent 301d565 commit 25b7c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/imgtool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +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']),
required=True)
required=False)
@click.option('--max-align', type=click.Choice(['8', '16', '32']),
required=False,
help='Maximum flash alignment. Set if flash alignment of the '
Expand Down

0 comments on commit 25b7c7a

Please sign in to comment.