mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Rename NormalizeHugoFlagsFunc to NormalizeHugoFlags
It IS a func.
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user