From: bep Date: Tue, 7 Apr 2015 11:01:04 +0000 (+0200) Subject: Add custom Windows mousestrap message X-Git-Tag: v0.14~132 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=be31b9e2;p=brevno-suite%2Fhugo Add custom Windows mousestrap message Fixes #1022 --- diff --git a/commands/hugo.go b/commands/hugo.go index 5c225fe5..69ac46f6 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.