Skip to content

Commit

Permalink
cmd name is at index 0, not 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrowell authored and sentriz committed Mar 8, 2023
1 parent df85b70 commit f165259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cliphist.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func main() {
os.Exit(1)
}
if err := cmd(flag.Args()[1:]); err != nil {
fmt.Fprintf(os.Stderr, "error in %q: %v", flag.Args()[1], err)
fmt.Fprintf(os.Stderr, "error in %q: %v", flag.Args()[0], err)
os.Exit(1)
}
}
Expand Down

0 comments on commit f165259

Please sign in to comment.