Fix panic when just 'influxd' is run

pull/1214/head
Philip O'Toole 2014-12-11 16:04:53 -08:00
parent 3c6e84858d
commit a20e8ec7e0
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}