Opened 2 years ago
#20406 new defect
Command Line Help: Update and additions
Reported by: | Hb--- | Owned by: | team |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
The help text appearing in the terminal is partly outdated. Some info should be added to.
1) The openstreetmap URL scheme has changed to /#map=zoom/52/9. The old scheme lat=x&lon=y&zoom=z is bad because the command line breaks on the & parameter connectors. Also a shorter description for File/Open is suggested.
Replace [--download=]<URL> Download the location at the URL (with lat=x&lon=y&zoom=z) [--download=]<filename> Open a file (any file type that can be opened with File/Open) --downloadgps=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPS with [--download=]<URL> Download the location at the OSM style URL [--download=]<filename> Open a file (any file type suitable for File/Open) --downloadgps=<URL> Download the location at the URL as raw GPS
2) Better show the debug possibilities, offspring from #20401. Announce the debug overlay in Mapview.
Replace --debug Print debugging messages to console with --debug or --trace Print debug info on Mapview and stdout
3) Change the example target areas to London with more variety in file names.
The current URL shown has 15 decimal places. Since r6453 it is generated by OsmUrlToBounds.getURL(43.2, 11.1, 13). I see a static URL example as better.
The searchfile on the ostertag server is 404. Furthermore I was not able to get an indirect search to work with a local file as stated in the wiki. This may be another bug.
Replace java -jar josm.jar track1.gpx track2.gpx london.osm java -jar josm.jar https://www.openstreetmap.org/#map=13/43.20000928332714/11.099981433345711 java -jar josm.jar london.osm --selection=http://www.ostertag.name/osm/OSM_errors_node-duplicate.xml java -jar josm.jar 43.2,11.1,43.4,11.4 with java -jar josm.jar track1.gpx BigBen.jpg "london data.osm" java -jar josm.jar https://www.openstreetmap.org/#map=18/51.501/-0.124 java -jar josm.jar 51.500,-0.126,51.502,-0.122 --selection="Big Ben"
4) Add an example line for proper logging including stderr
Add java -Duser.language=en -jar josm.jar --debug 1>logfile.txt 2>&1