func abortOn(errCase string, e error) {
	if e != nil {
		fmt.Fprintf(os.Stderr, "[%s] %s, %s: %v\n",
			color.White(progname), color.Red("Error"), errCase, e)
		os.Exit(1)
	}
}
abortOn will quit on anticipated errors gracefully without stack trace
package main
import (
	"fmt"
	"os"
	"github.com/labstack/gommon/color"
	"github.com/mkideal/cli"
)
type rootOptsT struct {
	Sleep   string
	WaitFor string
	Verbose int
}
var (
	progname  = "web2image"
	VERSION   = "0.1.0"
	buildTime = "2017-07-23"
)
var (
	rootArgv *rootT
	rootOpts rootOptsT
)
func main() {
	if err := cli.Root(root).Run(os.Args[1:]); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
	if rootOpts.Verbose >= 1 {
		fmt.Println("Screenshot taken.")
	}
	os.Exit(0)
}