| 94 | | // Only show the splash screen if we don't print the help and exit |
| 95 | | SplashScreen splash; |
| 96 | | if (!argList.contains("--help") && !argList.contains("-?") && !argList.contains("-h")) { |
| 97 | | splash = new SplashScreen(); |
| 98 | | } else { |
| 99 | | splash = null; |
| | 94 | if (argList.contains("--help") || argList.contains("-?") || argList.contains("-h")) { |
| | 95 | // TODO: put in a platformHook for system that have no console by default |
| | 96 | System.out.println(tr("Java OpenStreetMap Editor")+"\n\n"+ |
| | 97 | tr("usage")+":\n"+ |
| | 98 | "\tjava -jar josm.jar <option> <option> <option>...\n\n"+ |
| | 99 | tr("options")+":\n"+ |
| | 100 | "\t--help|-?|-h "+tr("Show this help")+"\n"+ |
| | 101 | "\t--geometry=widthxheight(+|-)x(+|-)y "+tr("Standard unix geometry argument")+"\n"+ |
| | 102 | "\t[--download=]minlat,minlon,maxlat,maxlon "+tr("Download the bounding box")+"\n"+ |
| | 103 | "\t[--download=]<url> "+tr("Download the location at the url (with lat=x&lon=y&zoom=z)")+"\n"+ |
| | 104 | "\t[--download=]<filename> "+tr("Open file (as raw gps, if .gpx)")+"\n"+ |
| | 105 | "\t--downloadgps=minlat,minlon,maxlat,maxlon "+tr("Download the bounding box as raw gps")+"\n"+ |
| | 106 | "\t--selection=<searchstring> "+tr("Select with the given search")+"\n"+ |
| | 107 | "\t--no-fullscreen "+tr("Don't launch in fullscreen mode")+"\n"+ |
| | 108 | "\t--reset-preferences "+tr("Reset the preferences to default")+"\n\n"+ |
| | 109 | "\t--language=<language> "+tr("Set the language.")+"\n\n"+ |
| | 110 | tr("examples")+":\n"+ |
| | 111 | "\tjava -jar josm.jar track1.gpx track2.gpx london.osm\n"+ |
| | 112 | "\tjava -jar josm.jar http://www.openstreetmap.org/index.html?lat=43.2&lon=11.1&zoom=13\n"+ |
| | 113 | "\tjava -jar josm.jar london.osm --selection=http://www.ostertag.name/osm/OSM_errors_node-duplicate.xml\n"+ |
| | 114 | "\tjava -jar josm.jar 43.2,11.1,43.4,11.4\n\n"+ |
| | 115 | |
| | 116 | tr("Parameters are read in the order they are specified, so make sure you load\n"+ |
| | 117 | "some data before --selection")+"\n\n"+ |
| | 118 | tr("Instead of --download=<bbox> you may specify osm://<bbox>\n")); |
| | 119 | System.exit(0); |
| 155 | | if (argList.contains("--help") || argList.contains("-?") || argList.contains("-h")) { |
| 156 | | // TODO: put in a platformHook for system that have no console by default |
| 157 | | System.out.println(tr("Java OpenStreetMap Editor")+"\n\n"+ |
| 158 | | tr("usage")+":\n"+ |
| 159 | | "\tjava -jar josm.jar <option> <option> <option>...\n\n"+ |
| 160 | | tr("options")+":\n"+ |
| 161 | | "\t--help|-?|-h "+tr("Show this help")+"\n"+ |
| 162 | | "\t--geometry=widthxheight(+|-)x(+|-)y "+tr("Standard unix geometry argument")+"\n"+ |
| 163 | | "\t[--download=]minlat,minlon,maxlat,maxlon "+tr("Download the bounding box")+"\n"+ |
| 164 | | "\t[--download=]<url> "+tr("Download the location at the url (with lat=x&lon=y&zoom=z)")+"\n"+ |
| 165 | | "\t[--download=]<filename> "+tr("Open file (as raw gps, if .gpx)")+"\n"+ |
| 166 | | "\t--downloadgps=minlat,minlon,maxlat,maxlon "+tr("Download the bounding box as raw gps")+"\n"+ |
| 167 | | "\t--selection=<searchstring> "+tr("Select with the given search")+"\n"+ |
| 168 | | "\t--no-fullscreen "+tr("Don't launch in fullscreen mode")+"\n"+ |
| 169 | | "\t--reset-preferences "+tr("Reset the preferences to default")+"\n\n"+ |
| 170 | | "\t--language=<language> "+tr("Set the language.")+"\n\n"+ |
| 171 | | tr("examples")+":\n"+ |
| 172 | | "\tjava -jar josm.jar track1.gpx track2.gpx london.osm\n"+ |
| 173 | | "\tjava -jar josm.jar http://www.openstreetmap.org/index.html?lat=43.2&lon=11.1&zoom=13\n"+ |
| 174 | | "\tjava -jar josm.jar london.osm --selection=http://www.ostertag.name/osm/OSM_errors_node-duplicate.xml\n"+ |
| 175 | | "\tjava -jar josm.jar 43.2,11.1,43.4,11.4\n\n"+ |
| 176 | | |
| 177 | | tr("Parameters are read in the order they are specified, so make sure you load\n"+ |
| 178 | | "some data before --selection")+"\n\n"+ |
| 179 | | tr("Instead of --download=<bbox> you may specify osm://<bbox>\n")); |
| 180 | | System.exit(0); |
| 181 | | } |
| 182 | | |