MCPcopy
hub / github.com/Jguer/yay / AddArg

Method AddArg

pkg/settings/parser/parser.go:189–198  ·  view source on GitHub ↗
(options ...string)

Source from the content-addressed store, hash-verified

187}
188
189func (a *Arguments) AddArg(options ...string) error {
190 for _, option := range options {
191 err := a.addParam(option, "")
192 if err != nil {
193 return err
194 }
195 }
196
197 return nil
198}
199
200// Multiple args acts as an OR operator.
201func (a *Arguments) ExistsArg(options ...string) bool {

Calls 1

addParamMethod · 0.95