Skip to content

Commit b8b1dc2

Browse files
author
Federico Fissore
committed
Dropping --curdir CLI argument support
1 parent 85ae80b commit b8b1dc2

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

arduino-core/src/processing/app/BaseNoGui.java

-5
Original file line numberDiff line numberDiff line change
@@ -963,11 +963,6 @@ static public void initParameters(String args[]) throws IOException {
963963
preferencesFile = args[i];
964964
continue;
965965
}
966-
if (args[i].equals("--curdir")) {
967-
i++;
968-
currentDirectory = args[i];
969-
continue;
970-
}
971966
}
972967

973968
// run static initialization that grabs all the prefs

arduino-core/src/processing/app/helpers/CommandlineParser.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,8 @@ public void parseArgumentsPhase1() {
146146
continue;
147147
}
148148
if (args[i].equals("--curdir")) {
149-
i++;
150-
if (i >= args.length)
151-
BaseNoGui.showError(null, _("Argument required for --curdir"), 3);
152-
// Argument should be already processed by Base.main(...)
153-
continue;
149+
BaseNoGui.showError(null, _("--curdir no longer supported"), 3);
150+
return;
154151
}
155152
if (args[i].equals("--buildpath")) {
156153
i++;

0 commit comments

Comments
 (0)