Print help message when triggered with no flags

This commit is contained in:
Mos Roshanavand 2023-06-26 20:20:24 +02:00 committed by Bjørn Erik Pedersen
parent 79639c981c
commit 12646750aa
5 changed files with 7 additions and 0 deletions

View file

@ -96,6 +96,7 @@ func (c *importCommand) Init(cd *simplecobra.Commandeer) error {
Import requires a subcommand, e.g. ` + "`hugo import jekyll jekyll_root_path target_path`."
cmd.RunE = nil
return nil
}