mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
7d68d6ede2
`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. |
||
---|---|---|
.. | ||
commands | ||
logger | ||
models | ||
services | ||
utils | ||
main.go |