grafana/pkg/cmd
gotjosh 7d68d6ede2
grafana-cli: Fix receiving flags via command line (#17617)
`grafana-cli` uses the third-party library to define the flags and not
the standard library. Using `flag.Parse` conflicts with the defined
flags from our third-party library.

In the case where `flag.Parse` is used, the CLI assumes that definitions
provided are not needed and will not define them; producing errors of
the kind `flag provided but not defined --example-flag`.

Using the context to read any arguments (including flags) is the
recommended approach by the third-party library.
2019-06-18 10:25:37 +01:00
..
grafana-cli grafana-cli: Fix receiving flags via command line (#17617) 2019-06-18 10:25:37 +01:00
grafana-server Fix so that correct cache is provided to di registry (#17566) 2019-06-13 12:15:52 +02:00