Skip to content

Commit

Permalink
doc: imgtool: update align description
Browse files Browse the repository at this point in the history
Update the --align option values.
Add its description.
Delete [required], as it is optional now.

Signed-off-by: Andrej Butok <[email protected]>
  • Loading branch information
butok authored and nordicjm committed Nov 7, 2023
1 parent e9fccef commit 6c4f7b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/imgtool.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ primary slot and adds a header and trailer that the bootloader is expecting:
Options:
-k, --key filename
--public-key-format [hash|full]
--align [1|2|4|8] [required]
--align [1|2|4|8|16|32] Alignment used by swap update modes.
-v, --version TEXT [required]
-s, --security-counter TEXT Specify the value of security counter. Use
the `auto` keyword to automatically generate
Expand Down
3 changes: 2 additions & 1 deletion scripts/imgtool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ 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=False)
required=False,
help='Alignment used by swap update modes.')
@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 6c4f7b4

Please sign in to comment.