You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/common/command/build_flags.go

13 lines
338 B

package command
import (
"flag"
)
// BuildFilterFlags sets the proper command line flags needed for
// build filters.
func BuildFilterFlags(fs *flag.FlagSet, f *BuildFilters) {
fs.Var((*SliceValue)(&f.Except), "except", "build all builds except these")
fs.Var((*SliceValue)(&f.Only), "only", "only build the given builds by name")
}