pflag
pflag copied to clipboard
Parse positional argument and arcs with prefix always fail.
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!