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 zakkak committed Sep 18, 2023
1 parent d1cb851 commit 7517751
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 7517751

Please sign in to comment.