summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-25 09:58:55 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-25 10:22:11 +0100
commitd418c2c2eacdc1dc6fffe839e0a90600867878ca (patch)
tree11aef5526f07824d4d1d498e9d79d21d0ef84542 /commands
parentb2fcbb1f9774aa1e929b8575c0e1ac366ab2fb73 (diff)
Remove and update deprecation status
Diffstat (limited to 'commands')
-rw-r--r--commands/hugo.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index dc90d48ec..758106faf 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -242,9 +242,6 @@ func initHugoBuildCommonFlags(cmd *cobra.Command) {
cmd.Flags().BoolP("buildDrafts", "D", false, "include content marked as draft")
cmd.Flags().BoolP("buildFuture", "F", false, "include content with publishdate in the future")
cmd.Flags().BoolP("buildExpired", "E", false, "include expired content")
- cmd.Flags().Bool("disable404", false, "do not render 404 page")
- cmd.Flags().Bool("disableRSS", false, "do not build RSS files")
- cmd.Flags().Bool("disableSitemap", false, "do not build Sitemap file")
cmd.Flags().StringVarP(&source, "source", "s", "", "filesystem path to read files relative from")
cmd.Flags().StringVarP(&contentDir, "contentDir", "c", "", "filesystem path to content directory")
cmd.Flags().StringVarP(&layoutDir, "layoutDir", "l", "", "filesystem path to layout directory")
@@ -491,9 +488,6 @@ func (c *commandeer) initializeFlags(cmd *cobra.Command) {
"buildExpired",
"uglyURLs",
"canonifyURLs",
- "disable404",
- "disableRSS",
- "disableSitemap",
"enableRobotsTXT",
"enableGitInfo",
"pluralizeListTitles",
@@ -506,19 +500,6 @@ func (c *commandeer) initializeFlags(cmd *cobra.Command) {
"templateMetricsHints",
}
- // Remove these in Hugo 0.33.
- if cmd.Flags().Changed("disable404") {
- helpers.Deprecated("command line", "--disable404", "Use --disableKinds=404", true)
- }
-
- if cmd.Flags().Changed("disableRSS") {
- helpers.Deprecated("command line", "--disableRSS", "Use --disableKinds=RSS", true)
- }
-
- if cmd.Flags().Changed("disableSitemap") {
- helpers.Deprecated("command line", "--disableSitemap", "Use --disableKinds=sitemap", true)
- }
-
for _, key := range persFlagKeys {
c.setValueFromFlag(cmd.PersistentFlags(), key)
}