Skip to content

Commit

Permalink
fix(main): empty args cmd line parsing panic (go-graphite#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
msaf1980 authored May 14, 2024
1 parent 0c241c6 commit 4a8766e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphite-clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:])
Expand Down

0 comments on commit 4a8766e

Please sign in to comment.