Skip to content

Commit c949f3e

Browse files
committed
Fail on missing API options
1 parent aae9a26 commit c949f3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/option/SubstrateOptionsParser.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ public static String commandArgument(OptionKey<?> option, String value, String a
195195
}
196196
}
197197
}
198-
return HOSTED_OPTION_PREFIX + value + option;
198+
String optionString = HOSTED_OPTION_PREFIX + value + option;
199+
assert apiOptionName == null : "The API option " + apiOptionName + " not found for " + optionString;
200+
return optionString;
199201
} else {
200202
String apiOptionWithValue = null;
201203
for (APIOption apiOption : apiOptions) {

0 commit comments

Comments
 (0)