@@ -50,43 +50,43 @@ func (o *OptProxy) Set(value interface{}) (err error) {
50
50
return o .config .Set (o .option .opt .Name , value )
51
51
}
52
52
53
- // OnUpdate resets the update callback function of the option and returns self .
53
+ // OnUpdate resets the update callback function of the option and returns itself .
54
54
func (o * OptProxy ) OnUpdate (callback func (old , new interface {})) * OptProxy {
55
55
o .option .opt .OnUpdate = callback
56
56
return o
57
57
}
58
58
59
- // IsCli resets the cli flag of the option and returns self .
59
+ // IsCli resets the cli flag of the option and returns itself .
60
60
func (o * OptProxy ) IsCli (cli bool ) * OptProxy {
61
61
o .option .opt .IsCli = cli
62
62
return o
63
63
}
64
64
65
- // Aliases appends the aliases of the option and returns self .
65
+ // Aliases appends the aliases of the option and returns itself .
66
66
func (o * OptProxy ) Aliases (aliases ... string ) * OptProxy {
67
67
o .option .opt = o .option .opt .As (aliases ... )
68
68
return o
69
69
}
70
70
71
- // Short resets the short name of the option and returns self .
71
+ // Short resets the short name of the option and returns itself .
72
72
func (o * OptProxy ) Short (short string ) * OptProxy {
73
73
o .option .opt = o .option .opt .S (short )
74
74
return o
75
75
}
76
76
77
- // Validators appends the validators of the option and returns self .
77
+ // Validators appends the validators of the option and returns itself .
78
78
func (o * OptProxy ) Validators (validators ... Validator ) * OptProxy {
79
79
o .option .opt = o .option .opt .V (validators ... )
80
80
return o
81
81
}
82
82
83
- // Default resets the default value of the option and returns self .
83
+ // Default resets the default value of the option and returns itself .
84
84
func (o * OptProxy ) Default (_default interface {}) * OptProxy {
85
85
o .option .opt = o .option .opt .D (_default )
86
86
return o
87
87
}
88
88
89
- // Parser resets the parser of the option and returns self .
89
+ // Parser resets the parser of the option and returns itself .
90
90
func (o * OptProxy ) Parser (parser Parser ) * OptProxy {
91
91
o .option .opt = o .option .opt .P (parser )
92
92
return o
0 commit comments