Skip to content

Commit

Permalink
parse/pargs: add ShorthandFunc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gobwas committed Sep 20, 2021
1 parent fc1a947 commit 18d540a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parse/pargs/posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type Parser struct {
// ShorthandFunc allows user to define custom way of picking shorthand
// version of flag with given name.
// Shorthand field must be true when setting ShorthandFunc.
// Returning empty string means that no shorthand is possible for given
// name.
ShorthandFunc func(string) string

pos int
Expand Down

0 comments on commit 18d540a

Please sign in to comment.