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:
parent
ad1038acc8
commit
6211ffab43
1 changed files with 8 additions and 8 deletions
16
main.go
16
main.go
|
@ -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"`
|
Debug bool `flag:"debug,d" default:"false" description:"Enable debug logging"`
|
||||||
VersionAndExit bool `flag:"version" default:"false" description:"Print version and exit"`
|
GPXFile string `flag:"gpx-file,f" description:"File containing GPX waypoints"`
|
||||||
Pressure int64 `flag:"pressure" default:"4" description:"Pressure of the water grid"`
|
MachRange int64 `flag:"match-range" default:"20" description:"Range of meters to match GPX hydrants to OSM nodes"`
|
||||||
Debug bool `flag:"debug,d" default:"false" description:"Enable debug logging"`
|
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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue