// AddFlags binds the requested flags to the provided flagset
// TODO have this only take a flagset
func(f*RecordFlags)AddFlags(cmd*cobra.Command){
func(f*RecordFlags)AddFlags(cmd*cobra.Command){
iff==nil{
return
}
iff.Record!=nil{
iff.Record!=nil{
cmd.Flags().BoolVar(f.Record,"record",*f.Record,"Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.")
cmd.Flags().BoolVar(f.Record,"record",*f.Record,"Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.")
}
}
}
}
// NewRecordFlags provides a RecordFlags with reasonable default values set for use