|
7 | 7 | import java.util.Map; |
8 | 8 | import java.util.Properties; |
9 | 9 | import java.util.Set; |
10 | | -import java.util.TreeMap; |
| 10 | +import java.util.LinkedHashMap; |
11 | 11 | import java.util.logging.Logger; |
12 | 12 | import java.util.logging.Level; |
13 | 13 | import org.jlab.logging.SplitLogManager; |
|
19 | 19 | */ |
20 | 20 | public class OptionParser { |
21 | 21 |
|
22 | | - private Map<String,OptionValue> optionsDescriptors = new TreeMap<>(); |
23 | | - private Map<String,OptionValue> requiredOptions = new TreeMap<>(); |
24 | | - private Map<String,OptionValue> parsedOptions = new TreeMap<>(); |
| 22 | + private Map<String,OptionValue> optionsDescriptors = new LinkedHashMap<>(); |
| 23 | + private Map<String,OptionValue> requiredOptions = new LinkedHashMap<>(); |
| 24 | + private Map<String,OptionValue> parsedOptions = new LinkedHashMap<>(); |
25 | 25 | private Set<String> overridenOptions = new HashSet<>(); |
26 | 26 | private List<String> parsedInputList = new ArrayList<>(); |
27 | 27 | private String program = "undefined"; |
@@ -129,13 +129,7 @@ public String getUsageString(){ |
129 | 129 | } |
130 | 130 |
|
131 | 131 | public void printUsage(){ |
132 | | - System.out.println("\n\n"); |
133 | | - System.out.println("*******************************************"); |
134 | | - System.out.println("* PROGRAM USAGE : by OptionParser *"); |
135 | | - System.out.println("*******************************************"); |
136 | | - System.out.println("\n\n"); |
137 | 132 | System.out.println(this.getUsageString()); |
138 | | - System.out.println("\n\n"); |
139 | 133 | } |
140 | 134 |
|
141 | 135 | public void parse(String... args) { |
|
0 commit comments