From 6211ffab431ba8f7febbf352b0ed9915968c267f Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 7 May 2016 14:54:44 +0200 Subject: [PATCH] Fix: Sorted config parameters --- main.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index adbb56e..d393213 100644 --- a/main.go +++ b/main.go @@ -15,18 +15,18 @@ import ( var ( cfg = struct { - GPXFile string `flag:"gpx-file,f" description:"File containing GPX waypoints"` - 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"` - OSM struct { + Comment string `flag:"comment,c" default:"Added hydrants from GPX file" description:"Comment for the changeset"` + 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 { Username string `flag:"osm-user" description:"Username to log into OSM"` Password string `flag:"osm-pass" description:"Password for osm-user"` 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"` - Comment string `flag:"comment,c" default:"Added hydrants from GPX file" description:"Comment for the changeset"` + Pressure int64 `flag:"pressure" default:"4" description:"Pressure of the water grid"` + VersionAndExit bool `flag:"version" default:"false" description:"Print version and exit"` }{} version = "dev"