Skip to content

Commit

Permalink
Fail on missing API options
Browse files Browse the repository at this point in the history
(cherry picked from commit c949f3e)
  • Loading branch information
vjovanov authored and jerboaa committed Aug 26, 2024
1 parent 058a829 commit 31573c1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ public static String commandArgument(OptionKey<?> option, String value, String a
}
}
}
return HOSTED_OPTION_PREFIX + value + option;
String optionString = HOSTED_OPTION_PREFIX + value + option;
assert apiOptionName == null : "The API option " + apiOptionName + " not found for " + optionString;
return optionString;
} else {
String apiOptionWithValue = null;
for (APIOption apiOption : apiOptions) {
Expand Down

0 comments on commit 31573c1

Please sign in to comment.