@@ -92,7 +92,7 @@ def assert_arg(key, value)
9292 assert_string "#{ key } .name" , value [ 'name' ]
9393 assert_optional_string "#{ key } .help" , value [ 'help' ]
9494 assert_string_or_array "#{ key } .default" , value [ 'default' ]
95- assert_optional_string "#{ key } .validate" , value [ 'validate' ]
95+ assert_string_or_array "#{ key } .validate" , value [ 'validate' ]
9696 assert_boolean "#{ key } .required" , value [ 'required' ]
9797 assert_boolean "#{ key } .repeatable" , value [ 'repeatable' ]
9898 assert_boolean "#{ key } .unique" , value [ 'unique' ]
@@ -123,7 +123,7 @@ def assert_flag(key, value)
123123 assert_optional_string "#{ key } .help" , value [ 'help' ]
124124 assert_optional_string "#{ key } .arg" , value [ 'arg' ]
125125 assert_string_or_array "#{ key } .default" , value [ 'default' ]
126- assert_optional_string "#{ key } .validate" , value [ 'validate' ]
126+ assert_string_or_array "#{ key } .validate" , value [ 'validate' ]
127127
128128 assert_boolean "#{ key } .private" , value [ 'private' ]
129129 assert_boolean "#{ key } .repeatable" , value [ 'repeatable' ]
@@ -169,7 +169,7 @@ def assert_env_var(key, value)
169169 assert_boolean "#{ key } .required" , value [ 'required' ]
170170 assert_boolean "#{ key } .private" , value [ 'private' ]
171171 assert_array "#{ key } .allowed" , value [ 'allowed' ] , of : :string
172- assert_optional_string "#{ key } .validate" , value [ 'validate' ]
172+ assert_string_or_array "#{ key } .validate" , value [ 'validate' ]
173173
174174 refute value [ 'required' ] && value [ 'default' ] , "#{ key } cannot have both nub`required` and nub`default`"
175175 end
0 commit comments