This greatly simplifies how to obtain the list of output.Format.
It no longer provides a way to list all output.Format, but focuses
on providing a list of string representation of output.Format, as this
is what is actually needed.
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
fmt.Sprintf("prints the output in the specified format. Allowed values: %s",strings.Join(output.Formats(),", ")))
ifindex!=0{
formats.WriteString(", ")
}
formats.WriteString(format.String())
}
cmd.Flags().VarP(newOutputValue(output.Table,varRef),outputFlag,"o",fmt.Sprintf("prints the output in the specified format. Allowed values: %s",formats.String()))