Use StringFlag

This commit is contained in:
Ricardo Gonzalez
2020-10-18 00:44:11 +01:00
parent 77971edf5f
commit 048bf237e2
@@ -161,9 +161,10 @@ OPTIONS:
EnvVars: []string{"COLLECTOR_DEBUG", "DEBUG"},
},
&cli.BoolFlag{
&cli.StringFlag{
Name: "host-id",
Usage: "Host identifier/label, used for grouping devices",
Value: "",
EnvVars: []string{"COLLECTOR_HOST_ID"},
},
},