Skip to content

Commit

Permalink
chore: Usage func and change comment
Browse files Browse the repository at this point in the history
  • Loading branch information
juev committed Sep 4, 2024
1 parent 971e555 commit 5e4242d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gobrew/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func main() {
case "noninteractive":
gb.Interactive(false)
case "h", "help":
flag.Usage()
Usage()
case "ls", "list":
gb.ListVersions()
case "ls-remote":
Expand All @@ -151,7 +151,7 @@ func main() {
// isArgAllowed checks if the arg is allowed
// but ignored flags
//
// if the any arg is not allowed, it will return false
// we check only the first argument, the command
func isArgAllowed(args []string) bool {
if len(args) > 0 {
_, ok := allowedArgs[args[0]]
Expand Down

0 comments on commit 5e4242d

Please sign in to comment.