Move Basepath prop to better match style

Since this is a flag that is being accepted by the application, it makes
sense to group it with the other flags. Also, the `json` struct tag was
a remnant from an earlier attempt at implementing this feature, and is
no longer necessary.
pull/814/head
Tim Raymond 2017-01-27 19:15:56 -05:00
parent e3186479cd
commit a0ba920046
1 changed files with 1 additions and 1 deletions

View File

@ -50,9 +50,9 @@ type Server struct {
ReportingDisabled bool `short:"r" long:"reporting-disabled" description:"Disable reporting of usage stats (os,arch,version,cluster_id,uptime) once every 24hr" env:"REPORTING_DISABLED"`
LogLevel string `short:"l" long:"log-level" value-name:"choice" choice:"debug" choice:"info" choice:"warn" choice:"error" choice:"fatal" choice:"panic" default:"info" description:"Set the logging level" env:"LOG_LEVEL"`
ShowVersion bool `short:"v" long:"version" description:"Show Chronograf version info"`
Basepath string `long:"basepath" description:"A URL path prefix under which all chronograf routes will be mounted"`
BuildInfo BuildInfo
Listener net.Listener
Basepath string `long:"basepath" description:"A URL path prefix under which all chronograf routes will be mounted" json:"basePath"`
handler http.Handler
}