commands: Re-introduce the -f shorthand for hugo new site

Fixes #11015
This commit is contained in:
Bjørn Erik Pedersen 2023-05-27 15:08:11 +02:00
parent f86b5f70a6
commit 901cd970db
2 changed files with 2 additions and 2 deletions

View file

@ -148,7 +148,7 @@ Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
return nil
},
withc: func(cmd *cobra.Command) {
cmd.Flags().BoolVar(&force, "force", false, "init inside non-empty directory")
cmd.Flags().BoolVarP(&force, "force", "f", false, "init inside non-empty directory")
},
},
&simpleCommand{