mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
commands: Print the "deploy not available" error message even if flags provided
Fixes #13012
This commit is contained in:
parent
801035bb7a
commit
2b0b3b8584
5 changed files with 67 additions and 12 deletions
|
@ -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
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue