From 27b22cd87e0637da9714e4161e33b8e7f5c5bc46 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Fri, 29 Sep 2023 12:17:35 -0700 Subject: [PATCH] commands/new: Remove format flag from new content cmd Fixes #11462 --- commands/new.go | 1 - docs/content/en/commands/hugo_new_content.md | 1 - 2 files changed, 2 deletions(-) diff --git a/commands/new.go b/commands/new.go index ffd75b2bb..8e348366d 100644 --- a/commands/new.go +++ b/commands/new.go @@ -63,7 +63,6 @@ Ensure you run this within the root directory of your site.`, cmd.Flags().StringVarP(&contentType, "kind", "k", "", "content type to create") cmd.Flags().String("editor", "", "edit new content with this editor, if provided") cmd.Flags().BoolVarP(&force, "force", "f", false, "overwrite file if it already exists") - cmd.Flags().StringVar(&format, "format", "toml", "preferred file format (toml, yaml or json)") applyLocalFlagsBuildConfig(cmd, r) }, diff --git a/docs/content/en/commands/hugo_new_content.md b/docs/content/en/commands/hugo_new_content.md index dd646766b..cc53346ad 100644 --- a/docs/content/en/commands/hugo_new_content.md +++ b/docs/content/en/commands/hugo_new_content.md @@ -30,7 +30,6 @@ hugo new content [path] [flags] -c, --contentDir string filesystem path to content directory --editor string edit new content with this editor, if provided -f, --force overwrite file if it already exists - --format string preferred file format (toml, yaml or json) (default "toml") -h, --help help for content -k, --kind string content type to create -t, --theme strings themes to use (located in /themes/THEMENAME/)