From be31b9e287e588685ea5b75081838de2fd4f0788 Mon Sep 17 00:00:00 2001 From: bep Date: Tue, 7 Apr 2015 13:01:04 +0200 Subject: [PATCH] Add custom Windows mousestrap message Fixes #1022 --- commands/hugo.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commands/hugo.go b/commands/hugo.go index 5c225fe5d..69ac46f65 100644 --- 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.