commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage

To get it in line with the others.
This commit is contained in:
Bjørn Erik Pedersen
2022-02-15 12:57:49 +01:00
parent ea54a99ca5
commit 6819feab6c
7 changed files with 13 additions and 13 deletions

View File

@@ -244,7 +244,7 @@ func initializeFlags(cmd *cobra.Command, cfg config.Provider) {
// Set some "config aliases"
setValueFromFlag(cmd.Flags(), "destination", cfg, "publishDir", false)
setValueFromFlag(cmd.Flags(), "i18n-warnings", cfg, "logI18nWarnings", false)
setValueFromFlag(cmd.Flags(), "path-warnings", cfg, "logPathWarnings", false)
setValueFromFlag(cmd.Flags(), "printPathWarnings", cfg, "logPathWarnings", false)
}
func setValueFromFlag(flags *flag.FlagSet, key string, cfg config.Provider, targetKey string, force bool) {