func (opts *Options) FlagSet() *flag.FlagSet {
	fs := flag.NewFlagSet("options", flag.ContinueOnError)
	fs.SetOutput(ioutil.Discard)
	fs.BoolVar(&opts.Depth, DepthFlag, opts.Depth, "")
	fs.UintVar(&opts.Mindepth, MindepthFlag, opts.Mindepth, "")
	fs.IntVar(&opts.Maxdepth, MaxdepthFlag, opts.Maxdepth, "")
	fs.BoolVar(&opts.Daystart, DaystartFlag, opts.Daystart, "")
	fs.BoolVar(&opts.Fullmeta, FullmetaFlag, opts.Fullmeta, "")
	return fs
}
FlagSet returns a flagset representing
opts.
package types
import (
	"flag"
	"io/ioutil"
	"github.com/puppetlabs/wash/cmd/util"
)
type Options struct {
	Depth    bool
	Maxdepth int
	Mindepth uint
	Daystart bool
	Fullmeta bool
	Help     HelpOption
	setFlags map[string]struct{}
}
const DefaultMaxdepth = 1<<31 - 1
func NewOptions() Options {
	return Options{
		Depth:    false,
		Mindepth: 0,
		Maxdepth: DefaultMaxdepth,
		Daystart: false,
		Fullmeta: false,
		setFlags: make(map[string]struct{}),
	}
}
const (
	DepthFlag = "depth"
	MindepthFlag = "mindepth"
	MaxdepthFlag = "maxdepth"
	DaystartFlag = "daystart"
	FullmetaFlag = "fullmeta"
)
func (opts *Options) IsSet(flag string) bool {
	_, ok := opts.setFlags[flag]
	return ok
}
func (opts *Options) MarkAsSet(flag string) {
	opts.setFlags[flag] = struct{}{}
}