Skip to content

Commit

Permalink
commands/new: Remove format flag from new content cmd
Browse files Browse the repository at this point in the history
Fixes #11462
  • Loading branch information
jmooring authored and bep committed Oct 30, 2023
1 parent a2488b1 commit 27b22cd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion commands/new.go
Expand Up @@ -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)

},
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/commands/hugo_new_content.md
Expand Up @@ -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/)
Expand Down

0 comments on commit 27b22cd

Please sign in to comment.