How do I most reasonably implement "-T[1]" ? #187
Unanswered
shueybubbles
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Could you just make |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm not opposed to the idea of supporting this, but what would the value of the field be in the case of eg. Count int `short:"T" optional:""` It is clear what value |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building a tool in Go whose command line has some backward compatibility requirements with the C++ version. It uses a Windows style without
--
or commands.One of the switches is of the form
-T[1]
where-T
by itself means one thing and-T1
meansT plus something else
. Theshort
tag seems limited to 1 character andname
implies a--
usage.I guess I can name a struct member
T1
but then I have to make sure the struct member with the meaningful name gets set to its value after the kong processing has completed.Beta Was this translation helpful? Give feedback.
All reactions