Lines Matching defs:Set
28 type Set struct { struct
29 stateMu sync.Mutex
30 state State
33 args []string
38 program string
42 parameters string
44 usage func() // usage should print the programs usage and exit.
46 shortOptions map[rune]*option
47 longOptions map[string]*option
48 options optionList
65 func (s *Set) setState(state State) {
73 func (s *Set) State() State {
108 func (s *Set) Arg(n int) string {
121 func (s *Set) Args() []string {
131 func (s *Set) NArgs() int {
143 func (s *Set) SetParameters(parameters string) {
155 func (s *Set) SetProgram(program string) {
167 func (s *Set) SetUsage(usage func()) {
179 func (s *Set) Lookup(name interface{}) Option {
201 func (s *Set) IsSet(name interface{}) bool {
218 func (s *Set) GetCount(name interface{}) int {
237 func (s *Set) GetValue(name interface{}) string {
250 func (s *Set) Visit(fn func(Option)) {
265 func (s *Set) VisitAll(fn func(Option)) {
280 func (s *Set) Reset() {