2013-08-09 18:10:24 -04:00
|
|
|
package command
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
)
|
|
|
|
|
2013-08-09 18:21:24 -04:00
|
|
|
// BuildOptionFlags sets the proper command line flags needed for
|
|
|
|
// build options.
|
|
|
|
func BuildOptionFlags(fs *flag.FlagSet, f *BuildOptions) {
|
2013-08-09 18:10:24 -04:00
|
|
|
fs.Var((*SliceValue)(&f.Except), "except", "build all builds except these")
|
|
|
|
fs.Var((*SliceValue)(&f.Only), "only", "only build the given builds by name")
|
|
|
|
}
|