ref(changelog): add unit description of max-file-size

This commit is contained in:
Felix Wiedmann
2021-05-08 23:23:43 +02:00
parent 7b93801e88
commit 9bc3143f53

View File

@@ -10,7 +10,7 @@ func init() {
changelogCmd.Flags().Bool("checks", false, "Check for missing values and envs") changelogCmd.Flags().Bool("checks", false, "Check for missing values and envs")
changelogCmd.Flags().Bool("overwrite", false, "Overwrite the content of the changelog. Default is to prepend the new changelog to the existing file.") changelogCmd.Flags().Bool("overwrite", false, "Overwrite the content of the changelog. Default is to prepend the new changelog to the existing file.")
changelogCmd.Flags().StringP("out", "o", "CHANGELOG.md", "Name of the file") changelogCmd.Flags().StringP("out", "o", "CHANGELOG.md", "Name of the file")
changelogCmd.Flags().Int64("max-file-size", 10, "The max allowed file size for a changelog file. If the file size is larger, the current file will be moved to a new file named <filename>-01.md. The next changelog will be written to de default file.") changelogCmd.Flags().Int64("max-file-size", 10, "The max allowed file size in MB for a changelog file. If the file size is larger, the current file will be moved to a new file named <filename>-01.md. The next changelog will be written to de default file.")
rootCmd.AddCommand(changelogCmd) rootCmd.AddCommand(changelogCmd)
} }