Rename NormalizeHugoFlagsFunc to NormalizeHugoFlags

It IS a func.
This commit is contained in:
Bjørn Erik Pedersen 2015-10-02 06:47:34 +02:00
parent ead339abbe
commit 218554e363
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ var Source, CacheDir, Destination, Theme, BaseURL, CfgFile, LogFile, Editor stri
//Execute adds all child commands to the root command HugoCmd and sets flags appropriately.
func Execute() {
HugoCmd.SetGlobalNormalizationFunc(helpers.NormalizeHugoFlagsFunc)
HugoCmd.SetGlobalNormalizationFunc(helpers.NormalizeHugoFlags)
AddCommands()
utils.StopOnErr(HugoCmd.Execute())
}

View file

@ -432,7 +432,7 @@ func DoArithmetic(a, b interface{}, op rune) (interface{}, error) {
// NormalizeHugoFlagsFunc facilitates transitions of Hugo command-line flags,
// e.g. --baseUrl to --baseURL, --uglyUrls to --uglyURLs
func NormalizeHugoFlagsFunc(f *pflag.FlagSet, name string) pflag.NormalizedName {
func NormalizeHugoFlags(f *pflag.FlagSet, name string) pflag.NormalizedName {
switch name {
case "baseUrl":
name = "baseURL"