Add custom Windows mousestrap message

Fixes #1022
This commit is contained in:
bep 2015-04-07 13:01:04 +02:00
parent be4a9dd5d2
commit be31b9e287

View file

@ -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.