func ToStringSlice(flagMap map[string]string, prefix string) []string {
	flagSlice := make([]string, 0)
	for k, v := range flagMap {
		if len(v) == 0 {
			flagSlice = append(flagSlice, fmt.Sprintf("%s%s", prefix, k))
		} else {
			flagSlice = append(flagSlice, fmt.Sprintf("%s%s=%s", prefix, k, v))
		}
	}
	sort.Strings(flagSlice)
	return flagSlice
}
// ToStringSlice convert flag map to flag string slice, adding prefix to the flag key if provided
ToStringSlice convert flag map to flag string slice, adding prefix to the flag key if provided
// ToStringSlice convert flag map to flag string slice adding prefix to the flag key if provided
func ToStringSlice(flagMap map[string]string, prefix string) []string {
	flagSlice := make([]string, 0)
	for k, v := range flagMap {
		if len(v) == 0 {
			flagSlice = append(flagSlice, fmt.Sprintf("%s%s", prefix, k))
		} else {
			flagSlice = append(flagSlice, fmt.Sprintf("%s%s=%s", prefix, k, v))
		}
	}
	sort.Strings(flagSlice)
	return flagSlice
}
func ToStringSlice ( flagMap map [ string ] string , prefix string ) [ ] string { flagSlice := make ( [ ] string , 0 ) for k , v := range flagMap { if len ( v ) == 0 { flagSlice = append ( flagSlice , fmt . Sprintf ( " " , prefix , k ) ) } else { flagSlice = append ( flagSlice , fmt . Sprintf ( " " , prefix , k , v ) ) } } sort . Strings ( flagSlice ) return flagSlice }
ToStringSlice convert flag map to flag string slice, adding prefix to the flag key if provided
ToStringSlice convert flag map to flag string slice adding prefix to the flag key if provided