nitc :: CmdOptions :: opt_string
key
as StringReturn null
if no option with that key
or if value is empty.
# Get option value for `key` as String
#
# Return `null` if no option with that `key` or if value is empty.
fun opt_string(key: String): nullable String do
if not has_key(key) then return null
var value = self[key]
if value.is_empty then return null
return value
end
src/doc/commands/commands_parser.nit:412,2--420,4