Skip to content

Commit

Permalink
Improve using() function
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Jul 20, 2023
1 parent 4afaa1d commit 2edb3fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions args.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ func Using(name string) bool {
}
for _, r := range registered {
if r.name == name {
if _, ok := Args[r.short]; ok {
return true
}
return true
}
if _, ok := Args[r.short]; ok {
return true
}
}
}
Expand Down

0 comments on commit 2edb3fe

Please sign in to comment.