str
to a value of type VALUE
.
redef fun convert(str) do return str
lib/opts/opts.nit:186,2--37
redef fun convert(str)
do
var words = str.split(":")
if words.length == 1 then
return new UserGroup(str, null)
else if words.length == 2 then
return new UserGroup(words[0], words[1])
else
errors.add("Option {names.join(", ")} expected parameter in the format \"user:group\" or simply \"user\".\n")
return null
end
end
lib/privileges/privileges.nit:85,2--96,4