Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ class CommandLineArgs {
* without an associated value — for example, "--foo" vs. "--foo=bar".
*/
public void addOptionArg(String optionName, @Nullable String optionValue) {
if (!this.optionArgs.containsKey(optionName)) {
this.optionArgs.put(optionName, new ArrayList<>());
}
List<String> values = this.optionArgs.computeIfAbsent(optionName, key -> new ArrayList<>());
if (optionValue != null) {
this.optionArgs.get(optionName).add(optionValue);
values.add(optionValue);
}
}

Expand Down