Skip to content

Commit

Permalink
Fail on missing API options
Browse files Browse the repository at this point in the history
  • Loading branch information
vjovanov committed Sep 13, 2023
1 parent aae9a26 commit c949f3e
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 c949f3e

Please sign in to comment.