mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
cmd_boot(): add choices list to type
arg
This commit is contained in:
parent
ee4f899254
commit
9ece4f582e
1 changed files with 1 additions and 1 deletions
2
boot.py
2
boot.py
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue