// firstDashedArg returns the index of the first dashed argument, e.g. -ex
// https://stackoverflow.com/a/51526473/4069534
firstDashedArg returns the index of the first dashed argument, e.g.
// firstDashedArg returns the index of the first dashed argument e . g . - ex // https : // stackoverflow . com / a / 51526473 / 4069534
func firstDashedArg() int {
	for k, v := range os.Args {
		if len(v) > 0 && v[0] == '-' {
			return k
		}
	}
	return 1
}
func firstDashedArg ( ) int { for k , v := range os . Args { if len ( v ) > 0 && v [ 0 ] == '-' { return k } } return 1 }
firstDashedArg returns the index of the first dashed argument, e.g.
firstDashedArg returns the index of the first dashed argument e . g .