From 65da9400e8da9b97d154f4f461c5a9bbf758d3c0 Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Thu, 15 Sep 2022 12:55:37 +0400 Subject: [PATCH] tools: fix idf_tools.py download command without --platform option --- tools/idf_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/idf_tools.py b/tools/idf_tools.py index d64cd4ac1c..32afa57b40 100755 --- a/tools/idf_tools.py +++ b/tools/idf_tools.py @@ -1405,7 +1405,7 @@ def action_download(args): # type: ignore platform = Platforms.get(args.platform) if platform is None: - fatal('unknown platform: {}' % args.platform) + fatal('unknown platform: %s' % args.platform) raise SystemExit(1) tools_info_for_platform = OrderedDict() @@ -1868,7 +1868,7 @@ def main(argv): # type: (list[str]) -> None ' It defaults to installing all supported targets.') download = subparsers.add_parser('download', help='Download the tools into the dist directory') - download.add_argument('--platform', help='Platform to download the tools for') + download.add_argument('--platform', default=CURRENT_PLATFORM, help='Platform to download the tools for') download.add_argument('tools', metavar='TOOL', nargs='*', default=['required'], help='Tools to download. ' + 'To download a specific version use @ syntax. ' +