mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/idf_tools_download' into 'release/v4.4'
tools: fix idf_tools.py download command without --platform option See merge request espressif/esp-idf!20170
This commit is contained in:
commit
5af9949289
@ -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 <tool_name>@<version> syntax. ' +
|
||||
|
Loading…
x
Reference in New Issue
Block a user