Skip to content

Commit

Permalink
Remove default config path to make --version work
Browse files Browse the repository at this point in the history
There's no good default config path anyway, and we hit the following issue:

* alecthomas/kingpin#261

```
$ ebpf_exporter --version
ebpf_exporter: error: open config.yaml: no such file or directory, try --help
```
  • Loading branch information
bobrik committed Oct 19, 2021
1 parent 2c998d8 commit f0b8023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ebpf_exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func main() {
configFile := kingpin.Flag("config.file", "Config file path").Default("config.yaml").File()
configFile := kingpin.Flag("config.file", "Config file path").File()
debug := kingpin.Flag("debug", "Enable debug").Bool()
listenAddress := kingpin.Flag("web.listen-address", "The address to listen on for HTTP requests").Default(":9435").String()
metricsPath := kingpin.Flag("web.telemetry-path", "Path under which to expose metrics").Default("/metrics").String()
Expand Down

0 comments on commit f0b8023

Please sign in to comment.