diff options
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 0a6b9750c..c6819b054 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -204,17 +204,22 @@ func initializeFlags(cmd *cobra.Command, cfg config.Provider) { "buildWatch", "cacheDir", "cfgFile", + "confirm", "contentDir", "debug", "destination", "disableKinds", + "dryRun", + "force", "gc", + "i18n-warnings", "layoutDir", "logFile", - "i18n-warnings", + "maxDeletes", "quiet", "renderToMemory", "source", + "target", "theme", "themesDir", "verbose", @@ -263,6 +268,9 @@ func setValueFromFlag(flags *flag.FlagSet, key string, cfg config.Provider, targ case "stringSlice": bv, _ := flags.GetStringSlice(key) cfg.Set(configKey, bv) + case "int": + iv, _ := flags.GetInt(key) + cfg.Set(configKey, iv) default: panic(fmt.Sprintf("update switch with %s", f.Value.Type())) } |