From 18d540aed2ff1445882baba0f9ef87875c07e8e1 Mon Sep 17 00:00:00 2001 From: Sergey Kamardin Date: Mon, 20 Sep 2021 14:43:23 +0300 Subject: [PATCH] parse/pargs: add ShorthandFunc comment --- parse/pargs/posix.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parse/pargs/posix.go b/parse/pargs/posix.go index 6ab87b0..c58c0bd 100644 --- a/parse/pargs/posix.go +++ b/parse/pargs/posix.go @@ -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