pflag icon indicating copy to clipboard operation
pflag copied to clipboard

Parse positional argument and arcs with prefix always fail.

Open lucasjinreal opened this issue 7 years ago • 0 comments

Hi, things is I want parse 2 bool args, but there is a positional arg, like this:

gofind ./ -d -f

./ is a positional arg, but once I add this , -d -f cannot parse which is default by false , so it should be true if set. But always false. How to parse them? and what if I want using

-d -f as -df just like tar -xvf? Many thanks if can get a reply or advise!

lucasjinreal avatar Aug 10 '17 15:08 lucasjinreal