Skip to content

Commit

Permalink
Fix choices having an "options" prefix when automatically localizing
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 committed Jun 30, 2023
1 parent 48dba59 commit b884e3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void forObjects(DataArray source, Function<DataObject, String> keyExtrac

//We need to differentiate subcommands/groups from options before inserting the "options" separator
final OptionType type = OptionType.fromKey(item.getInt("type", -1)); //-1 when the object isn't an option
final boolean isOption = type != OptionType.SUB_COMMAND && type != OptionType.SUB_COMMAND_GROUP;
final boolean isOption = type != OptionType.SUB_COMMAND && type != OptionType.SUB_COMMAND_GROUP && type != OptionType.UNKNOWN;
if (isOption) {
//At this point the key should look like "path.to.command",
// we can insert "options", and the keyExtractor would give option names
Expand Down

0 comments on commit b884e3e

Please sign in to comment.