commands: Print the "deploy not available" error message even if flags provided

Fixes #13012
This commit is contained in:
Bjørn Erik Pedersen 2024-11-05 09:14:19 +01:00
parent 801035bb7a
commit 2b0b3b8584
5 changed files with 67 additions and 12 deletions

View file

@ -44,6 +44,7 @@ func newDeployCommand() simplecobra.Commander {
return errors.New("deploy not supported in this version of Hugo; install a release with 'withdeploy' in the archive filename or build yourself with the 'withdeploy' build tag. Also see https://github.com/gohugoio/hugo/pull/12995")
},
withc: func(cmd *cobra.Command, r *rootCommand) {
applyDeployFlags(cmd, r)
cmd.Hidden = true
},
}