Commit 7162baa4 authored by Eric Paris's avatar Eric Paris

Drop some of our flag stuff which isn't needed

parent 6d798699
...@@ -273,10 +273,6 @@ func (f *Factory) BindFlags(flags *pflag.FlagSet) { ...@@ -273,10 +273,6 @@ func (f *Factory) BindFlags(flags *pflag.FlagSet) {
// any flags defined by external projects (not part of pflags) // any flags defined by external projects (not part of pflags)
flags.AddGoFlagSet(flag.CommandLine) flags.AddGoFlagSet(flag.CommandLine)
// This is necessary as github.com/spf13/cobra doesn't support "global"
// pflags currently. See https://github.com/spf13/cobra/issues/44.
flags.AddFlagSet(pflag.CommandLine)
// Hack for global access to validation flag. // Hack for global access to validation flag.
// TODO: Refactor out after configuration flag overhaul. // TODO: Refactor out after configuration flag overhaul.
if f.flags.Lookup("validate") == nil { if f.flags.Lookup("validate") == nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment