shithub: hugo

Download patch

ref: be31b9e287e588685ea5b75081838de2fd4f0788
parent: be4a9dd5d283a4f2f7fc78aa00c28021e81d9e5b
author: bep <[email protected]>
date: Tue Apr 7 09:01:04 EDT 2015

Add custom Windows mousestrap message

Fixes #1022

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -101,6 +101,13 @@
 	HugoCmd.Flags().BoolVarP(&BuildWatch, "watch", "w", false, "watch filesystem for changes and recreate as needed")
 	HugoCmd.Flags().BoolVarP(&NoTimes, "noTimes", "", false, "Don't sync modification time of files")
 	hugoCmdV = HugoCmd
+
+	// This messge will be shown to Windows users if Hugo is opened from explorer.exe
+	cobra.MousetrapHelpText = `
+	
+  Hugo is a command line tool
+
+  You need to open cmd.exe and run it from there.`
 }
 
 // InitializeConfig initializes a config file with sensible default configuration flags.