Lines Matching defs:Set
27 type Set struct { struct
28 State // State of getopt
31 args []string
36 program string
40 parameters string
42 usage func() // usage should print the programs usage and exit.
44 shortOptions map[rune]*option
45 longOptions map[string]*option
46 options optionList
92 func (s *Set) Arg(n int) string {
105 func (s *Set) Args() []string {
115 func (s *Set) NArgs() int {
127 func (s *Set) SetParameters(parameters string) {
139 func (s *Set) SetProgram(program string) {
151 func (s *Set) SetUsage(usage func()) {
163 func (s *Set) Lookup(name interface{}) Option {
185 func (s *Set) IsSet(name interface{}) bool {
202 func (s *Set) GetCount(name interface{}) int {
221 func (s *Set) GetValue(name interface{}) string {
234 func (s *Set) Visit(fn func(Option)) {
249 func (s *Set) VisitAll(fn func(Option)) {
264 func (s *Set) Reset() {