Changeset 2821 in josm for trunk/src/org
- Timestamp:
- 2010-01-12T07:11:57+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r2820 r2821 11 11 import java.net.Authenticator; 12 12 import java.net.ProxySelector; 13 import java.util.Arrays;14 13 import java.util.Collection; 15 14 import java.util.HashMap; … … 116 115 117 116 // construct argument table 118 List<String> argList = Arrays.asList(argArray);119 117 final Map<String, Collection<String>> args = new HashMap<String, Collection<String>>(); 120 118 for (String arg : argArray) { 119 if ("-h".equals(arg) || "-?".equals(arg)) { 120 arg = "--help"; 121 } 122 // handle simple arguments like file names, URLs, bounds 121 123 if (!arg.startsWith("--")) { 122 124 arg = "--download="+arg; … … 149 151 150 152 // asking for help? show help and exit 151 if (arg List.contains("--help") || argList.contains("-?") || argList.contains("-h")) {153 if (args.containsKey("help")) { 152 154 showHelp(); 153 155 System.exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.