I can see that we have a backward compatibility of using goflags with the pflag library i.e pflag library can parse goflags also. However Can we have a feature that can convert the pflag flagset to go flag flagset. I ask is because I am trying to make pflag library work with Ginkgo ( which supports go flags internally ref: https://github.com/onsi/ginkgo/issues/1207) .
Maybe there a workaround to this or a hack that could be done to make it compatible with ginkgo.
I can see that we have a backward compatibility of using
goflags
with thepflag
library i.epflag
library can parsegoflags
also. However Can we have a feature that can convert thepflag flagset
togo flag flagset
. I ask is because I am trying to makepflag
library work with Ginkgo ( which supports go flags internally ref: https://github.com/onsi/ginkgo/issues/1207) .Maybe there a workaround to this or a hack that could be done to make it compatible with ginkgo.
Thanks.
Refer : https://github.com/onsi/ginkgo/issues/1207