Skip to content

Commit

Permalink
consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Apr 9, 2024
1 parent 98203ed commit 5e65c72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// If an error is returned, it is printed to stderr and the process exits with a non-zero exit code.
// The process is also canceled when an interrupt signal is received. This function and does not
// return.
func Main(options ...Options) {
func Main(opts ...Options) {
ctx, stop := newContext()
defer stop()
defer func() {
Expand All @@ -24,7 +24,7 @@ func Main(options ...Options) {
os.Exit(1)
}
}()
if err := Run(ctx, os.Args[1:], options...); err != nil {
if err := Run(ctx, os.Args[1:], opts...); err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
Expand Down

0 comments on commit 5e65c72

Please sign in to comment.