diff --git a/graphite-clickhouse.go b/graphite-clickhouse.go index c5c99bd5..a3747cea 100644 --- a/graphite-clickhouse.go +++ b/graphite-clickhouse.go @@ -417,7 +417,7 @@ func main() { fmt.Fprintf(os.Stderr, " match Match metric against rollup rules\n") } - if len(os.Args) > 0 { + if len(os.Args) > 1 { switch os.Args[1] { case "sd-list", "-sd-list": sdList(os.Args[0], os.Args[2:])