final checks on opt values moved after option parsing is complete
This commit is contained in:
+2
-2
@@ -85,7 +85,7 @@ func (cli *CliParser) AddStringArrayOpt(name, short string, targetVar *[]string,
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *cliOptionStringArray) finalCheck(cliValue string) (err error) {
|
||||
func (opt *cliOptionStringArray) finalCheck() (err error) {
|
||||
currentValue, _ := opt.getTargetVar()
|
||||
return opt.getBase().checkValue(cliValue, currentValue)
|
||||
return opt.getBase().checkValue(currentValue)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user