Remove the "/" adding code from EntityTypeFlag.

This commit is contained in:
Matthew Miller 2018-07-31 12:54:16 +10:00
parent dcdd0497d8
commit 66eb8fa553

View File

@ -40,10 +40,7 @@ protected EntityTypeFlag(String name) {
@Override
public EntityType parseInput(FlagContext context) throws InvalidFlagFormat {
String input = context.getUserInput();
input = input.trim();
if (!input.startsWith("/")) {
input = "/" + input;
}
input = input.trim().toLowerCase();
EntityType entityType = unmarshal(input);
if (entityType == null) {
throw new InvalidFlagFormat("Unknown entity type: " + input);