Skip to content

Commit 4a8766e

Browse files
authored
fix(main): empty args cmd line parsing panic (go-graphite#279)
1 parent 0c241c6 commit 4a8766e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphite-clickhouse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ func main() {
417417
fmt.Fprintf(os.Stderr, " match Match metric against rollup rules\n")
418418
}
419419

420-
if len(os.Args) > 0 {
420+
if len(os.Args) > 1 {
421421
switch os.Args[1] {
422422
case "sd-list", "-sd-list":
423423
sdList(os.Args[0], os.Args[2:])

0 commit comments

Comments
 (0)