From c76e60409f89987a3c75a027525104bdc65837f6 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Wed, 22 Dec 2021 19:13:25 -0800 Subject: [PATCH] download: Default to factory + latest build ID --- src/commands/download.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/download.ts b/src/commands/download.ts index 6a10868..865ede7 100644 --- a/src/commands/download.ts +++ b/src/commands/download.ts @@ -14,8 +14,8 @@ export default class Download extends Command { static flags = { help: flags.help({char: 'h'}), - type: flags.string({char: 't', options: ['factory', 'ota', 'vendor'], description: 'type(s) of images to download', default: 'factory', multiple: true}), - buildId: flags.string({char: 'b', description: 'build ID(s) of the images to download', required: true, multiple: true}), + type: flags.string({char: 't', options: ['factory', 'ota', 'vendor'], description: 'type(s) of images to download', default: ['factory'], multiple: true}), + buildId: flags.string({char: 'b', description: 'build ID(s) of the images to download', required: true, multiple: true, default: ['latest']}), device: flags.string({char: 'd', description: 'device(s) to download images for', required: true, multiple: true}), }