Przeglądaj źródła

tools: make idf_tools.py download --platform argument optional

...as it is described in the docs.
Ivan Grokhotkov 4 lat temu
rodzic
commit
d835387924
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tools/idf_tools.py

+ 1 - 1
tools/idf_tools.py

@@ -1715,7 +1715,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. ' +