Skip to content

Commit

Permalink
[GR-9285] Use the full name of the option when it's found using the d…
Browse files Browse the repository at this point in the history
…efault option prefix.

PullRequest: graal/1401
  • Loading branch information
pitr-ch committed Apr 25, 2018
2 parents ef35aab + 7384937 commit f1ea8d2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ boolean parsePolyglotOption(String defaultOptionPrefix, Map<String, String> opti
} catch (IllegalArgumentException e) {
throw abort(String.format("Invalid argument %s specified. %s'", arg, e.getMessage()));
}
options.put(key, value);
// use the full name of the found descriptor
options.put(descriptor.getName(), value);
return true;
}
}
Expand Down

0 comments on commit f1ea8d2

Please sign in to comment.