1
0
Fork 0
mirror of https://github.com/Luzifer/gpxhydrant.git synced 2024-12-22 20:21:17 +00:00

Fix: Sorted config parameters

This commit is contained in:
Knut Ahlers 2016-05-07 14:54:44 +02:00
parent ad1038acc8
commit 6211ffab43
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

12
main.go
View file

@ -15,18 +15,18 @@ import (
var ( var (
cfg = struct { cfg = struct {
GPXFile string `flag:"gpx-file,f" description:"File containing GPX waypoints"` Comment string `flag:"comment,c" default:"Added hydrants from GPX file" description:"Comment for the changeset"`
NoOp bool `flag:"noop,n" default:"true" description:"Fetch data from OSM but do not write"`
VersionAndExit bool `flag:"version" default:"false" description:"Print version and exit"`
Pressure int64 `flag:"pressure" default:"4" description:"Pressure of the water grid"`
Debug bool `flag:"debug,d" default:"false" description:"Enable debug logging"` Debug bool `flag:"debug,d" default:"false" description:"Enable debug logging"`
GPXFile string `flag:"gpx-file,f" description:"File containing GPX waypoints"`
MachRange int64 `flag:"match-range" default:"20" description:"Range of meters to match GPX hydrants to OSM nodes"`
NoOp bool `flag:"noop,n" default:"true" description:"Fetch data from OSM but do not write"`
OSM struct { OSM struct {
Username string `flag:"osm-user" description:"Username to log into OSM"` Username string `flag:"osm-user" description:"Username to log into OSM"`
Password string `flag:"osm-pass" description:"Password for osm-user"` Password string `flag:"osm-pass" description:"Password for osm-user"`
UseDev bool `flag:"osm-dev" default:"false" description:"Switch to dev API"` UseDev bool `flag:"osm-dev" default:"false" description:"Switch to dev API"`
} }
MachRange int64 `flag:"match-range" default:"20" description:"Range of meters to match GPX hydrants to OSM nodes"` Pressure int64 `flag:"pressure" default:"4" description:"Pressure of the water grid"`
Comment string `flag:"comment,c" default:"Added hydrants from GPX file" description:"Comment for the changeset"` VersionAndExit bool `flag:"version" default:"false" description:"Print version and exit"`
}{} }{}
version = "dev" version = "dev"