hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit be31b9e287e588685ea5b75081838de2fd4f0788
parent be4a9dd5d283a4f2f7fc78aa00c28021e81d9e5b
Author: bep <bjorn.erik.pedersen@gmail.com>
Date:   Tue,  7 Apr 2015 13:01:04 +0200

Add custom Windows mousestrap message

Fixes #1022

Diffstat:
Mcommands/hugo.go | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/commands/hugo.go b/commands/hugo.go
@@ -101,6 +101,13 @@ func init() {
 	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.