add two functions to get flag usages without (default xxx) at the end of the line
added FlagUsagesWithoutDefault(), FlagUsagesWrappedWithoutDefault() function which could return flag usages without default at the end of the line
when this PR will be merged? I need to create a PR on cobra project which uses this project after this commit being merged.
@romberli it's extremely unlikely that you're PR will ever get a response, let alone be merged. The maintainers only seem to care if you work on a big project or work at google. I suggest you use my fork, which works with cobra, and has already addressed the spirit of what you're looking for.
@cornfeedhobo ,so sad to hear that, but it seems that I do not have other choice, because cobra will never use other forks.
@romberli My fork has instructions on using it with cobra.
go mod edit -replace github.com/spf13/pflag=github.com/cornfeedhobo/pflag
@romberli Could you expand a little bit on the rationale behind this feature? Why is it desirable to print usage info without the default values for flags?