genny/grift/options.go
func (opts *Options) Validate() error {
	if len(opts.Args) == 0 {
		return errors.New("you need to provide a name for the grift task")
	}

	opts.Namespaced = strings.Contains(opts.Args[0], ":")

	for _, n := range strings.Split(opts.Args[0], ":") {
		opts.Parts = append(opts.Parts, name.New(n))
	}
	opts.Name = opts.Parts[len(opts.Parts)-1]
	return nil
}
func (opts *Options) Validate() error {
	if len(opts.Args) == 0 {
		return errors.New("you need to provide a name for the grift task")
	}

	opts.Namespaced = strings.Contains(opts.Args[0], ":")

	for _, n := range strings.Split(opts.Args[0], ":") {
		opts.Parts = append(opts.Parts, name.New(n))
	}
	opts.Name = opts.Parts[len(opts.Parts)-1]
	return nil
}
// Validate options