@@ -218,35 +218,35 @@ func initRootPersistentFlags() {
218218// initHugoBuildCommonFlags initialize common flags related to the Hugo build.
219219// Called by initHugoBuilderFlags.
220220func initHugoBuildCommonFlags (cmd * cobra.Command ) {
221- cmd .Flags ().Bool ("cleanDestinationDir" , false , "Remove files from destination not found in static directories" )
221+ cmd .Flags ().Bool ("cleanDestinationDir" , false , "remove files from destination not found in static directories" )
222222 cmd .Flags ().BoolP ("buildDrafts" , "D" , false , "include content marked as draft" )
223223 cmd .Flags ().BoolP ("buildFuture" , "F" , false , "include content with publishdate in the future" )
224224 cmd .Flags ().BoolP ("buildExpired" , "E" , false , "include expired content" )
225- cmd .Flags ().Bool ("disable404" , false , "Do not render 404 page" )
226- cmd .Flags ().Bool ("disableRSS" , false , "Do not build RSS files" )
227- cmd .Flags ().Bool ("disableSitemap" , false , "Do not build Sitemap file" )
225+ cmd .Flags ().Bool ("disable404" , false , "do not render 404 page" )
226+ cmd .Flags ().Bool ("disableRSS" , false , "do not build RSS files" )
227+ cmd .Flags ().Bool ("disableSitemap" , false , "do not build Sitemap file" )
228228 cmd .Flags ().StringVarP (& source , "source" , "s" , "" , "filesystem path to read files relative from" )
229229 cmd .Flags ().StringVarP (& contentDir , "contentDir" , "c" , "" , "filesystem path to content directory" )
230230 cmd .Flags ().StringVarP (& layoutDir , "layoutDir" , "l" , "" , "filesystem path to layout directory" )
231231 cmd .Flags ().StringVarP (& cacheDir , "cacheDir" , "" , "" , "filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/" )
232- cmd .Flags ().BoolP ("ignoreCache" , "" , false , "Ignores the cache directory" )
232+ cmd .Flags ().BoolP ("ignoreCache" , "" , false , "ignores the cache directory" )
233233 cmd .Flags ().StringVarP (& destination , "destination" , "d" , "" , "filesystem path to write files to" )
234234 cmd .Flags ().StringVarP (& theme , "theme" , "t" , "" , "theme to use (located in /themes/THEMENAME/)" )
235235 cmd .Flags ().StringVarP (& themesDir , "themesDir" , "" , "" , "filesystem path to themes directory" )
236236 cmd .Flags ().Bool ("uglyURLs" , false , "if true, use /filename.html instead of /filename/" )
237237 cmd .Flags ().Bool ("canonifyURLs" , false , "if true, all relative URLs will be canonicalized using baseURL" )
238238 cmd .Flags ().StringVarP (& baseURL , "baseURL" , "b" , "" , "hostname (and path) to the root, e.g. http://spf13.com/" )
239- cmd .Flags ().Bool ("enableGitInfo" , false , "Add Git revision, date and author info to the pages" )
239+ cmd .Flags ().Bool ("enableGitInfo" , false , "add Git revision, date and author info to the pages" )
240240
241241 cmd .Flags ().BoolVar (& nitro .AnalysisOn , "stepAnalysis" , false , "display memory and timing of different steps of the program" )
242- cmd .Flags ().Bool ("pluralizeListTitles" , true , "Pluralize titles in lists using inflect" )
243- cmd .Flags ().Bool ("preserveTaxonomyNames" , false , `Preserve taxonomy names as written ("Gérard Depardieu" vs "gerard-depardieu")` )
244- cmd .Flags ().BoolP ("forceSyncStatic" , "" , false , "Copy all files when static is changed." )
245- cmd .Flags ().BoolP ("noTimes" , "" , false , "Don 't sync modification time of files" )
246- cmd .Flags ().BoolP ("noChmod" , "" , false , "Don 't sync permission mode of files" )
247- cmd .Flags ().BoolVarP (& logI18nWarnings , "i18n-warnings" , "" , false , "Print missing translations" )
242+ cmd .Flags ().Bool ("pluralizeListTitles" , true , "pluralize titles in lists using inflect" )
243+ cmd .Flags ().Bool ("preserveTaxonomyNames" , false , `preserve taxonomy names as written ("Gérard Depardieu" vs "gerard-depardieu")` )
244+ cmd .Flags ().BoolP ("forceSyncStatic" , "" , false , "copy all files when static is changed." )
245+ cmd .Flags ().BoolP ("noTimes" , "" , false , "don 't sync modification time of files" )
246+ cmd .Flags ().BoolP ("noChmod" , "" , false , "don 't sync permission mode of files" )
247+ cmd .Flags ().BoolVarP (& logI18nWarnings , "i18n-warnings" , "" , false , "print missing translations" )
248248
249- cmd .Flags ().StringSliceVar (& disableKinds , "disableKinds" , []string {}, "Disable different kind of pages (home, RSS etc.)" )
249+ cmd .Flags ().StringSliceVar (& disableKinds , "disableKinds" , []string {}, "disable different kind of pages (home, RSS etc.)" )
250250
251251 // Set bash-completion.
252252 // Each flag must first be defined before using the SetAnnotation() call.
@@ -263,8 +263,8 @@ func initBenchmarkBuildingFlags(cmd *cobra.Command) {
263263// init initializes flags.
264264func init () {
265265 HugoCmd .PersistentFlags ().BoolVarP (& verbose , "verbose" , "v" , false , "verbose output" )
266- HugoCmd .PersistentFlags ().BoolVar (& logging , "log" , false , "Enable Logging" )
267- HugoCmd .PersistentFlags ().StringVar (& logFile , "logFile" , "" , "Log File path (if set, logging enabled automatically)" )
266+ HugoCmd .PersistentFlags ().BoolVar (& logging , "log" , false , "enable Logging" )
267+ HugoCmd .PersistentFlags ().StringVar (& logFile , "logFile" , "" , "log File path (if set, logging enabled automatically)" )
268268 HugoCmd .PersistentFlags ().BoolVar (& verboseLog , "verboseLog" , false , "verbose logging" )
269269
270270 initRootPersistentFlags ()
0 commit comments