mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
tools: fix idf_tools.py download command without --platform option
This commit is contained in:
parent
481d00be93
commit
65da9400e8
@ -1405,7 +1405,7 @@ def action_download(args): # type: ignore
|
|||||||
|
|
||||||
platform = Platforms.get(args.platform)
|
platform = Platforms.get(args.platform)
|
||||||
if platform is None:
|
if platform is None:
|
||||||
fatal('unknown platform: {}' % args.platform)
|
fatal('unknown platform: %s' % args.platform)
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
|
||||||
tools_info_for_platform = OrderedDict()
|
tools_info_for_platform = OrderedDict()
|
||||||
@ -1868,7 +1868,7 @@ def main(argv): # type: (list[str]) -> None
|
|||||||
' It defaults to installing all supported targets.')
|
' It defaults to installing all supported targets.')
|
||||||
|
|
||||||
download = subparsers.add_parser('download', help='Download the tools into the dist directory')
|
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'],
|
download.add_argument('tools', metavar='TOOL', nargs='*', default=['required'],
|
||||||
help='Tools to download. ' +
|
help='Tools to download. ' +
|
||||||
'To download a specific version use <tool_name>@<version> syntax. ' +
|
'To download a specific version use <tool_name>@<version> syntax. ' +
|
||||||
|
Loading…
Reference in New Issue
Block a user