mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-23 19:21:59 +03:00
Command line --get-pref may be used without name of the target pref.
If pref name is missing, all prefs are printed on stdout. Should fix/mitigate #2982
This commit is contained in:
@ -90,7 +90,7 @@ public class SplashScreenHelper {
|
||||
}
|
||||
|
||||
private void printText(String str) {
|
||||
System.out.println(str);
|
||||
System.err.println(str);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -477,13 +477,7 @@ public class Base {
|
||||
// Do nothing (intended for only changing preferences)
|
||||
System.exit(0);
|
||||
} else if (parser.isGetPrefMode()) {
|
||||
String value = PreferencesData.get(parser.getGetPref(), null);
|
||||
if (value != null) {
|
||||
System.out.println(value);
|
||||
System.exit(0);
|
||||
} else {
|
||||
System.exit(4);
|
||||
}
|
||||
BaseNoGui.dumpPrefs(parser);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user