mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Rename NormalizeHugoFlagsFunc to NormalizeHugoFlags
It IS a func.
This commit is contained in:
parent
ead339abbe
commit
218554e363
2 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue