File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ func main() {
171171 Areas []string `short:"a" long:"area" description:"Add an area to the static map" value-name:"AREA"`
172172 Circles []string `short:"C" long:"circle" description:"Add a circle to the static map" value-name:"CIRCLE"`
173173 ThunderforstAPIKey string `long:"thunderforestapikey" description:"API key to use with Thunderforst tile servers" value-name:"APIKEY" default:"NONE"`
174+ Attribution string `long:"attribution" description:"Override the attribution text" value-name:"ATTRIBUTION"`
174175 }
175176
176177 parser := flags .NewParser (& opts , flags .HelpFlag | flags .PassDoubleDash )
@@ -213,6 +214,10 @@ func main() {
213214 ctx .SetUserAgent (opts .UserAgent )
214215 }
215216
217+ if parser .FindOptionByLongName ("attribution" ).IsSet () {
218+ ctx .OverrideAttribution (opts .Attribution )
219+ }
220+
216221 handleAreasOption (ctx , opts .Areas )
217222 handleMarkersOption (ctx , opts .Markers )
218223 handleImageMarkersOption (ctx , opts .ImageMarkers )
You can’t perform that action at this time.
0 commit comments