Make flags declared outside spf13.pflag persistent flags on the parent
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Some projects pick up flags from other projects they include. A great example would be projects that use glog and thus get all of those flags. Kubernetes, for example, merges those flags manually into its commands. This was reported in https://github.com/spf13/cobra/issues/44 What this patch does is merge those flags into the PersistentFlags on the highest parent. This allows kubernetes to stop having to merge things themselves...
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+7 added−0 removed
- other:+7 added−0 removed