Skip to content
Snippets Groups Projects
Commit 6f0ca1e9 authored by jeffliu's avatar jeffliu
Browse files

[124920] Create a tool that generates a report of adopters' usage of WTP code

parent 5a86f48e
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
package org.eclipse.wtp.releng.tools.component.util;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
......@@ -31,6 +32,20 @@ public class CommandOptionParser
return options;
}
public Collection getOption(String key)
{
return (Collection)options.get(key);
}
public String getOptionAsString(String key)
{
Collection c = getOption(key);
if (c.isEmpty())
return null;
else
return (String)c.iterator().next();
}
private void parse(String[] args)
{
options = new HashMap();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment