nitc :: CmdOptions :: opt_visibility
Return null
if no option with that key
or if the value is not in
allowed_visibility
.
# Get option as a MVisibility
#
# Return `null` if no option with that `key` or if the value is not in
# `allowed_visibility`.
fun opt_visibility(key: String): nullable MVisibility do
var value = opt_string(key)
if value == null then return null
if not allowed_visibility.keys.has(key) then return null
return allowed_visibility[value]
end
src/doc/commands/commands_parser.nit:445,2--454,4