mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
Allow library manager to install multiple libraries at once.
Libraries are split using a comma fx: --install-library "Kalman filter library,USB Host Shield Library 2.0"
This commit is contained in:
parent
87e2e68b85
commit
7d08b58222
@ -368,7 +368,8 @@ public class Base {
|
||||
indexer.setLibrariesFolders(BaseNoGui.getLibrariesPath());
|
||||
installer.updateIndex();
|
||||
|
||||
String[] libraryToInstallParts = parser.getLibraryToInstall().split(":");
|
||||
for (String library : parser.getLibraryToInstall().split(",")) {
|
||||
String[] libraryToInstallParts = library.split(":");
|
||||
|
||||
ContributedLibrary selected=null;
|
||||
if (libraryToInstallParts.length == 2) {
|
||||
@ -391,6 +392,7 @@ public class Base {
|
||||
} else {
|
||||
installer.install(selected, installed);
|
||||
}
|
||||
}
|
||||
|
||||
System.exit(0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user