Skip to content

Commit

Permalink
fix positional args check
Browse files Browse the repository at this point in the history
  • Loading branch information
mkadirtan committed May 14, 2024
1 parent 28cb221 commit 8f929fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The commands are:
}
}

if len(a.positionalArgs) < 0 {
if len(a.positionalArgs) < 1 {
a.debugLogger.Println("expected a command")
a.debugLogger.Println(usage)
os.Exit(1)
Expand Down

0 comments on commit 8f929fd

Please sign in to comment.