commit 218554e363084ddc248cba180708797fca23eb02
parent ead339abbe9ba9e7235546fea719fcbeda7b1432
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Fri, 2 Oct 2015 06:47:34 +0200
Rename NormalizeHugoFlagsFunc to NormalizeHugoFlags
It IS a func.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/commands/hugo.go b/commands/hugo.go
@@ -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())
}
diff --git a/helpers/general.go b/helpers/general.go
@@ -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"