示例#1
0
文件: utils.go 项目: pedrosnk/tsuru
func MergeFlagSet(fs1, fs2 *gnuflag.FlagSet) *gnuflag.FlagSet {
	fs2.VisitAll(func(flag *gnuflag.Flag) {
		fs1.Var(flag.Value, flag.Name, flag.Usage)
	})
	return fs1
}
示例#2
0
文件: cmd.go 项目: tsuru/tsuru
func (c *dockerCmd) addMany(fs *gnuflag.FlagSet, val gnuflag.Value, desc string, triggers ...string) {
	for _, t := range triggers {
		fs.Var(val, t, desc)
	}
}