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
49 requiredGroups []string
66 func (s *Set) setState(state State) {
74 func (s *Set) State() State {
112 func (s *Set) Arg(n int) string {
125 func (s *Set) Args() []string {
135 func (s *Set) NArgs() int {
147 func (s *Set) SetParameters(parameters string) {
152 func (s *Set) Parameters() string { return s.parameters }
162 func (s *Set) SetProgram(program string) {
167 func (s *Set) Program() string { return s.program }
177 func (s *Set) SetUsage(usage func()) {
189 func (s *Set) Lookup(name interface{}) Option {
211 func (s *Set) IsSet(name interface{}) bool {
228 func (s *Set) GetCount(name interface{}) int {
247 func (s *Set) GetValue(name interface{}) string {
260 func (s *Set) Visit(fn func(Option)) {
275 func (s *Set) VisitAll(fn func(Option)) {
290 func (s *Set) Reset() {
299 func (s *Set) RequiredGroup(group string) {