// ArgumentsToCommand takes two Arg slices, one with the base arguments and one // with optional override arguments. In the return list override arguments will precede base // arguments. If an argument is present in the overrides, it will cause // all instances of the same argument in the base list to be discarded, leaving // only the instances of this argument in the overrides to be applied. func ArgumentsToCommand(base []kubeadmapi.Arg, overrides []kubeadmapi.Arg) []string { … } // ArgumentsFromCommand parses a CLI command in the form "--foo=bar" to an Arg slice. // This function's primary purpose is to parse the kubeadm-flags.env file, but can remain unused // for some releases. func ArgumentsFromCommand(command []string) []kubeadmapi.Arg { … } // parseArgument parses the argument "--foo=bar" to "foo" and "bar" func parseArgument(arg string) (string, string, error) { … }