nitc :: CmdIniLicense :: defaultinit
# Cmd that finds the license related to an `mentity`
class CmdIniLicense
super CmdIni
# License string
var license: nullable String = null
redef fun init_command do
var res = super
if not res isa CmdSuccess then return res
var mentity = self.mentity.as(not null)
var ini = self.ini.as(not null)
var license = ini["package.license"]
if license == null then return new WarningNoLicense(mentity)
self.license = license
return res
end
end
src/doc/commands/commands_ini.nit:230,1--250,3