mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Show an error on unknown options
This commit is contained in:
@ -357,6 +357,9 @@ public class Base {
|
|||||||
currentDirectory = args[i];
|
currentDirectory = args[i];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (args[i].startsWith("--"))
|
||||||
|
showError(null, I18n.format(_("unknown option: {0}"), args[i]), null);
|
||||||
|
|
||||||
String path = args[i];
|
String path = args[i];
|
||||||
// Fix a problem with systems that use a non-ASCII languages. Paths are
|
// Fix a problem with systems that use a non-ASCII languages. Paths are
|
||||||
// being passed in with 8.3 syntax, which makes the sketch loader code
|
// being passed in with 8.3 syntax, which makes the sketch loader code
|
||||||
|
Reference in New Issue
Block a user