code: func NewCmdExplain(parent string, f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
  	o := NewExplainOptions(parent, streams)
  
  	cmd := &cobra.Command{
  		Use:                   "explain RESOURCE",
  		DisableFlagsInUseLine: true,
  		Short:                 i18n.T("Documentation of resources"),
  		Long:                  explainLong + "\n\n" + cmdutil.SuggestAPIResources(parent),
  		Example:               explainExamples,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(o.Complete(f, cmd))
  			cmdutil.CheckErr(o.Validate(args))
  			cmdutil.CheckErr(o.Run(args))
  		},
  	}
  	cmd.Flags().BoolVar(&o.Recursive, "recursive", o.Recursive, "Print the fields of fields (Currently only 1 level deep)")
  	cmd.Flags().StringVar(&o.APIVersion, "api-version", o.APIVersion, "Get different explanations for particular API version")
  	return cmd
  }
docs: // NewCmdExplain returns a cobra command for swagger docs