code: func DisableFlagsInUseLine(cmd *cobra.Command) {
  	VisitAll(cmd, func(ccmd *cobra.Command) {
  		// do not add a `[flags]` to the end of the usage line.
  		ccmd.DisableFlagsInUseLine = true
  	})
  }
docs: // DisableFlagsInUseLine sets the DisableFlagsInUseLine flag on all
  // commands within the tree rooted at cmd.