Commit aa70dae2 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Add create command to commands dict

`create` as alias to `sign` was defined in the arg parsing, but was not
functional because it was missing the subcommands call dict. This makes
`create` call the `sign` method.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent b5b59f16
Loading
Loading
Loading
Loading
+3 −1
Changes for scripts/imgtool.py: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -92,7 +92,9 @@ def do_sign(args):
subcmds = {
    'keygen': do_keygen,
    'getpub': do_getpub,
        'sign': do_sign, }
    'sign': do_sign,
    'create': do_sign,
}

def alignment_value(text):
    value = int(text)