diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-09-21 14:27:35 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-09-21 14:27:35 +0200 |
commit | df4cbbd3bdc05aa14a67b3a0a29a0db75b82e640 (patch) | |
tree | 789b18a5d5ad01ccd6936b993714ba227bf39c87 /commands/hugo.go | |
parent | 2e2e34a9350edec0220462aa3d47ecc9d428a0fb (diff) |
commands: Remove deprecated flags
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 3f1697ea9..2e7353d51 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -233,22 +233,9 @@ func initializeFlags(cmd *cobra.Command, cfg config.Provider) { } -var deprecatedFlags = map[string]bool{ - strings.ToLower("uglyURLs"): true, - strings.ToLower("pluralizeListTitles"): true, - strings.ToLower("preserveTaxonomyNames"): true, - strings.ToLower("canonifyURLs"): true, -} - func setValueFromFlag(flags *flag.FlagSet, key string, cfg config.Provider, targetKey string, force bool) { key = strings.TrimSpace(key) if (force && flags.Lookup(key) != nil) || flags.Changed(key) { - if _, deprecated := deprecatedFlags[strings.ToLower(key)]; deprecated { - msg := fmt.Sprintf(`Set "%s = true" in your config.toml. -If you need to set this configuration value from the command line, set it via an OS environment variable: "HUGO_%s=true hugo"`, key, strings.ToUpper(key)) - // Remove in Hugo 0.38 - helpers.Deprecated("hugo", "--"+key+" flag", msg, true) - } f := flags.Lookup(key) configKey := key if targetKey != "" { |