From d5f23dcfa8a8d050cc8089fa1ed85b6ad7799719 Mon Sep 17 00:00:00 2001 From: Andrej Butok Date: Thu, 5 Oct 2023 13:00:17 +0200 Subject: [PATCH] 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 --- scripts/imgtool/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/imgtool/main.py b/scripts/imgtool/main.py index c3fce5435..a38abe7d0 100755 --- a/scripts/imgtool/main.py +++ b/scripts/imgtool/main.py @@ -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 '