Fix panic when just 'influxd' is run
parent
3c6e84858d
commit
a20e8ec7e0
|
@ -43,7 +43,7 @@ func main() {
|
|||
}
|
||||
|
||||
// Special case -h immediately following binary name
|
||||
if args[0] == "-h" {
|
||||
if len(args) > 0 && args[0] == "-h" {
|
||||
cmd = "help"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue