func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName {
	if strings.Contains(name, "_") {
		normalizedName := strings.Replace(name, "_", "-", -1)
		log.Warn(fmt.Sprintf("%s is DEPRECATED and will be removed" +
			" in a future version. Use %s instead.", name, normalizedName))
		return pflag.NormalizedName(normalizedName)
	}
	return pflag.NormalizedName(name)
}
WarnWordSepNormalizeFunc changes and warns for flags that contain "_" separators
package flag
import (
	"strings"
	"fmt"
	"tkestack.io/image-transfer/pkg/log"
	"github.com/spf13/pflag"
)
func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName {
	if strings.Contains(name, "_") {
		return pflag.NormalizedName(strings.Replace(name, "_", "-", -1))
	}
	return pflag.NormalizedName(name)
}