Skip to content

Commit

Permalink
Merge pull request #128 from trueival/develop
Browse files Browse the repository at this point in the history
 expvar flag compatibilti fix
  • Loading branch information
nnugumanov committed Jul 3, 2019
2 parents 2dca708 + 8d558ef commit c36de6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,16 @@ func Run() {
}
var (
example bool
expvar bool
)
flag.BoolVar(&example, "example", false, "print example config to STDOUT and exit")
flag.BoolVar(&expvar, "expvar", false, "enable expvar service (DEPRECATED, use monitoring config section instead)")
flag.Parse()

if expvar {
fmt.Fprintf(os.Stderr, "-expvar flag is DEPRECATED. Use monitoring config section instead\n")
}

if example {
panic("Not implemented yet")
// TODO: print example config file content
Expand Down

0 comments on commit c36de6e

Please sign in to comment.