cmd_boot(): add choices list to type arg

This commit is contained in:
InsanePrawn 2021-10-25 18:19:14 +02:00
parent ee4f899254
commit 9ece4f582e

View file

@ -15,7 +15,7 @@ TYPES = [LK2ND, JUMPDRIVE, BOOTIMG]
@click.command(name='boot')
@click.argument('type', required=False, default=BOOTIMG)
@click.argument('type', required=False, default=BOOTIMG, type=click.Choice(TYPES))
def cmd_boot(type):
f"""Flash one of {', '.join(TYPES)}"""
enforce_wrap()