1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-18 12:54:25 +01:00

Show an error on unknown options

This commit is contained in:
Matthijs Kooijman 2013-10-25 15:21:04 +02:00
parent e32eafe48f
commit 4ba80e3715

View File

@ -357,6 +357,9 @@ public class Base {
currentDirectory = args[i];
continue;
}
if (args[i].startsWith("--"))
showError(null, I18n.format(_("unknown option: {0}"), args[i]), null);
String path = args[i];
// 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