Skip to content

Commit 4ba80e3

Browse files
Show an error on unknown options
1 parent e32eafe commit 4ba80e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/processing/app/Base.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ public Base(String[] args) throws Exception {
357357
currentDirectory = args[i];
358358
continue;
359359
}
360+
if (args[i].startsWith("--"))
361+
showError(null, I18n.format(_("unknown option: {0}"), args[i]), null);
362+
360363
String path = args[i];
361364
// Fix a problem with systems that use a non-ASCII languages. Paths are
362365
// being passed in with 8.3 syntax, which makes the sketch loader code

0 commit comments

Comments
 (0)